78 lines
2.1 KiB
YAML
78 lines
2.1 KiB
YAML
|
services:
|
||
|
broker:
|
||
|
image: redis:6.0
|
||
|
restart: unless-stopped
|
||
|
logging:
|
||
|
driver: fluentd
|
||
|
options:
|
||
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|
||
|
|
||
|
db:
|
||
|
image: postgres:13
|
||
|
restart: unless-stopped
|
||
|
volumes:
|
||
|
- /containers/data/paperless/pgsql:/var/lib/postgresql/data
|
||
|
environment:
|
||
|
POSTGRES_DB: paperless
|
||
|
POSTGRES_USER: paperless
|
||
|
POSTGRES_PASSWORD:
|
||
|
logging:
|
||
|
driver: fluentd
|
||
|
options:
|
||
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|
||
|
|
||
|
webserver:
|
||
|
image: ghcr.io/paperless-ngx/paperless-ngx:latest
|
||
|
restart: unless-stopped
|
||
|
depends_on:
|
||
|
- db
|
||
|
- broker
|
||
|
- gotenberg
|
||
|
- tika
|
||
|
ports:
|
||
|
- '60087:8000'
|
||
|
healthcheck:
|
||
|
test: ["CMD", "curl", "-f", "http://localhost:8000"]
|
||
|
interval: 30s
|
||
|
timeout: 10s
|
||
|
retries: 5
|
||
|
volumes:
|
||
|
- /containers/data/paperless/data:/usr/src/paperless/data
|
||
|
- /containers/data/paperless/media:/usr/src/paperless/media
|
||
|
- /containers/data/paperless/export:/usr/src/paperless/export
|
||
|
- /containers/data/paperless/consume:/usr/src/paperless/consume
|
||
|
#env_file: docker-compose.env
|
||
|
environment:
|
||
|
PAPERLESS_REDIS: redis://broker:6379
|
||
|
PAPERLESS_DBHOST: db
|
||
|
PAPERLESS_TIKA_ENABLED: 1
|
||
|
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
|
||
|
PAPERLESS_TIKA_ENDPOINT: http://tika:9998
|
||
|
USERMAP_UID: 1000
|
||
|
USERMAP_GID: 1000
|
||
|
PAPERLESS_SECRET_KEY:
|
||
|
PAPERLESS_TIME_ZONE: America/Detroit
|
||
|
PAPERLESS_URL: https://paper.example.com
|
||
|
logging:
|
||
|
driver: fluentd
|
||
|
options:
|
||
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|
||
|
|
||
|
gotenberg:
|
||
|
image: thecodingmachine/gotenberg
|
||
|
restart: unless-stopped
|
||
|
environment:
|
||
|
DISABLE_GOOGLE_CHROME: 1
|
||
|
logging:
|
||
|
driver: fluentd
|
||
|
options:
|
||
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|
||
|
|
||
|
tika:
|
||
|
image: apache/tika
|
||
|
restart: unless-stopped
|
||
|
logging:
|
||
|
driver: fluentd
|
||
|
options:
|
||
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|