diff --git a/docker-compose.yml b/docker-compose.yml index 908b7d2..97064be 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,36 +25,23 @@ # # For more extensive installation and update instructions, refer to the # documentation. +# https://paperless-ng.readthedocs.io/en/latest/configuration.html version: "3.4" services: broker: + container_name: paperless_broker image: redis:6.0 restart: unless-stopped - db: - image: postgres:13 - restart: unless-stopped - volumes: - - pgdata:/var/lib/postgresql/data - environment: - POSTGRES_DB: paperless - POSTGRES_USER: paperless - POSTGRES_PASSWORD: paperless - webserver: + container_name: paperless_core image: jonaswinkler/paperless-ng:latest restart: unless-stopped depends_on: - - db - broker ports: - - 8800:8000 - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000"] - interval: 30s - timeout: 10s - retries: 5 + - :8800:8000 volumes: - data:/usr/src/paperless/data - media:/usr/src/paperless/media @@ -62,11 +49,16 @@ services: - ./consume:/usr/src/paperless/consume env_file: docker-compose.env environment: + PAPERLESS_ADMIN_USER= + PAPERLESS_ADMIN_PASSWORD= PAPERLESS_REDIS: redis://broker:6379 - PAPERLESS_DBHOST: db + PAPERLESS_DBHOST= + PAPERLESS_DBPORT= + PAPERLESS_DBNAME= + PAPERLESS_DBUSER= + PAPERLESS_DBPASS= volumes: data: media: - pgdata: