2025-07-20 19:27:04 +02:00
|
|
|
# Docker Compose file for running paperless testing with actual Gotenberg
|
2022-11-29 13:59:48 -08:00
|
|
|
# and Tika containers for a more end to end test of the Tika related functionality
|
2024-01-08 11:58:41 -05:00
|
|
|
# Can be used locally or by the CI to start the necessary containers with the
|
2022-11-29 13:59:48 -08:00
|
|
|
# correct networking for the tests
|
|
|
|
|
services:
|
|
|
|
|
gotenberg:
|
2026-03-02 10:14:48 -08:00
|
|
|
image: docker.io/gotenberg/gotenberg:8.27
|
2022-11-29 13:59:48 -08:00
|
|
|
hostname: gotenberg
|
|
|
|
|
container_name: gotenberg
|
|
|
|
|
network_mode: host
|
|
|
|
|
restart: unless-stopped
|
2022-11-30 10:16:39 +01:00
|
|
|
# The gotenberg chromium route is used to convert .eml files. We do not
|
|
|
|
|
# want to allow external content like tracking pixels or even javascript.
|
2022-11-29 13:59:48 -08:00
|
|
|
command:
|
|
|
|
|
- "gotenberg"
|
2022-11-30 10:16:39 +01:00
|
|
|
- "--chromium-disable-javascript=true"
|
|
|
|
|
- "--chromium-allow-list=file:///tmp/.*"
|
2023-12-05 07:36:25 -08:00
|
|
|
- "--log-level=warn"
|
|
|
|
|
- "--log-format=text"
|
2022-11-29 13:59:48 -08:00
|
|
|
tika:
|
2026-03-17 15:43:28 -07:00
|
|
|
image: docker.io/apache/tika:3.2.3.0
|
2022-11-29 13:59:48 -08:00
|
|
|
hostname: tika
|
|
|
|
|
container_name: tika
|
|
|
|
|
network_mode: host
|
|
|
|
|
restart: unless-stopped
|
2026-01-27 11:35:12 -08:00
|
|
|
greenmail:
|
2026-03-17 15:43:28 -07:00
|
|
|
image: docker.io/greenmail/standalone:2.1.8
|
2026-01-27 11:35:12 -08:00
|
|
|
hostname: greenmail
|
|
|
|
|
container_name: greenmail
|
|
|
|
|
environment:
|
|
|
|
|
# Enable only IMAP for now (SMTP available via 3025 if needed later)
|
|
|
|
|
GREENMAIL_OPTS: >-
|
|
|
|
|
-Dgreenmail.setup.test.imap -Dgreenmail.users=test@localhost:test -Dgreenmail.users.login=test@localhost -Dgreenmail.verbose
|
|
|
|
|
ports:
|
|
|
|
|
- "3143:3143" # IMAP
|
|
|
|
|
restart: unless-stopped
|
2026-01-27 19:57:12 -08:00
|
|
|
nginx:
|
2026-02-06 12:26:29 -08:00
|
|
|
image: docker.io/nginx:1.29.5-alpine
|
2026-01-27 19:57:12 -08:00
|
|
|
hostname: nginx
|
|
|
|
|
container_name: nginx
|
|
|
|
|
ports:
|
|
|
|
|
- "8080:8080"
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
volumes:
|
|
|
|
|
- ../../docs/assets:/usr/share/nginx/html/assets:ro
|
|
|
|
|
- ./test-nginx.conf:/etc/nginx/conf.d/default.conf:ro
|