services: webserver: image: ghcr.io/paperless-ngx/paperless-ngx:latest restart: unless-stopped depends_on: - db - broker ports: - "8000:8000" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000"] interval: 30s timeout: 10s retries: 5 volumes: - /srv/mergerfs/DataPool/pdfs/data:/usr/src/paperless/data - /srv/mergerfs/DataPool/pdfs/media:/usr/src/paperless/media - /srv/mergerfs/DataPool/pdfs/export:/usr/src/paperless/export - /srv/mergerfs/DataPool/pdfs/consume:/usr/src/paperless/consume environment: PAPERLESS_REDIS: redis://broker:6379 PAPERLESS_DBHOST: db PAPERLESS_DBNAME: paperless PAPERLESS_DBUSER: paperless PAPERLESS_DBPASS: paperless PAPERLESS_CONSUMER_POLLING: "1" db: image: postgres:15 restart: unless-stopped healthcheck: test: ["CMD-SHELL", "pg_isready -U paperless"] interval: 10s timeout: 5s retries: 5 volumes: - paperless_pgdata_fixed:/var/lib/postgresql/data environment: POSTGRES_DB: paperless POSTGRES_USER: paperless POSTGRES_PASSWORD: paperless broker: image: redis:6.0 restart: unless-stopped healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 volumes: paperless_pgdata_fixed: external: true