version: "2.1" services: paperless-ngx: image: lscr.io/linuxserver/paperless-ngx:latest container_name: paperless-ngx environment: - PUID=1000 - PGID=1000 - TZ=Europe/Berlin #- PAPERLESS_URL=https://docs.example.com # uncomment and adjust if behind reverse proxy #- REDIS_URL= #optional volumes: - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/paperless-ngx/config:/config - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/paperless-ngx/data:/data ports: - 8000:8000 restart: unless-stopped #labels: # - traefik.enable=true # - traefik.http.routers.paperless-ngx.rule=Host(`docs.example.com`) # - traefik.http.services.paperless-ngx.loadbalancer.server.port=8000 # - traefik.docker.network=proxy # # Part for optional traefik middlewares # - traefik.http.routers.paperless-ngx.middlewares=local-ipwhitelist@file