Move Paperless to local Traefik with HTTPS
- Remove port 8011 binding, route through Traefik instead - Add Traefik labels for docs.home.frostlabs.me - Update Paperless URLs to use HTTPS with local domain - Configure allowed hosts and CSRF trusted origins 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -19,8 +19,6 @@ services:
|
|||||||
|
|
||||||
paperless_webserver:
|
paperless_webserver:
|
||||||
image: ghcr.io/paperless-ngx/paperless-ngx:latest
|
image: ghcr.io/paperless-ngx/paperless-ngx:latest
|
||||||
ports:
|
|
||||||
- 8011:8000
|
|
||||||
volumes:
|
volumes:
|
||||||
- /home/doc/projects/swarm-data/appdata/paperless/data:/usr/src/paperless/data
|
- /home/doc/projects/swarm-data/appdata/paperless/data:/usr/src/paperless/data
|
||||||
- /home/doc/projects/swarm-data/appdata/paperless/media:/usr/src/paperless/media
|
- /home/doc/projects/swarm-data/appdata/paperless/media:/usr/src/paperless/media
|
||||||
@@ -37,9 +35,9 @@ services:
|
|||||||
# - PAPERLESS_URLS=https://docs.frostlabs.me
|
# - PAPERLESS_URLS=https://docs.frostlabs.me
|
||||||
# - PAPERLESS_ALLOWED_HOSTS=docs.frostlabs.me,docs.frostlabs.home
|
# - PAPERLESS_ALLOWED_HOSTS=docs.frostlabs.me,docs.frostlabs.home
|
||||||
# - PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.frostlabs.me,https://docs.frostlabs.home
|
# - PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.frostlabs.me,https://docs.frostlabs.home
|
||||||
- PAPERLESS_URLS=http://10.0.4.11:8011
|
- PAPERLESS_URLS=https://docs.home.frostlabs.me
|
||||||
# - PAPERLESS_ALLOWED_HOSTS=10.0.4.11
|
- PAPERLESS_ALLOWED_HOSTS=docs.home.frostlabs.me
|
||||||
# - PAPERLESS_CSRF_TRUSTED_ORIGINS=http://10.0.4.11:8011
|
- PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.home.frostlabs.me
|
||||||
- PAPERLESS_REDIS=redis://paperless_redis:6379
|
- PAPERLESS_REDIS=redis://paperless_redis:6379
|
||||||
- PAPERLESS_DBHOST=10.0.4.10 # Fixed: removed http://
|
- PAPERLESS_DBHOST=10.0.4.10 # Fixed: removed http://
|
||||||
- PAPERLESS_DBPORT=5432
|
- PAPERLESS_DBPORT=5432
|
||||||
@@ -71,6 +69,14 @@ services:
|
|||||||
cpus: '2.0'
|
cpus: '2.0'
|
||||||
reservations:
|
reservations:
|
||||||
memory: 1G
|
memory: 1G
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.swarm.network=homelab"
|
||||||
|
- "traefik.http.routers.paperless.rule=Host(`docs.home.frostlabs.me`)"
|
||||||
|
- "traefik.http.routers.paperless.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.paperless.tls=true"
|
||||||
|
- "traefik.http.routers.paperless.service=paperless"
|
||||||
|
- "traefik.http.services.paperless.loadbalancer.server.port=8000"
|
||||||
depends_on: # Fixed: removed postgres dependency
|
depends_on: # Fixed: removed postgres dependency
|
||||||
- paperless_redis
|
- paperless_redis
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user