Refactor environment variables in stack.yml: removed http:// from DBHOST and eliminated postgres dependency

This commit is contained in:
2025-10-27 21:46:31 +00:00
parent 8ec72187a4
commit 51a7aae379

View File

@@ -23,17 +23,19 @@ services:
- paperless-secret-key - paperless-secret-key
- paperless-admin-pass - paperless-admin-pass
environment: environment:
- PAPERLESS_DBPASS_FILE=/run/secrets/postgres-master
- PAPERLESS_SECRET_KEY_FILE=/run/secrets/paperless-secret-key
- PAPERLESS_ADMIN_PASSWORD_FILE=/run/secrets/paperless-admin-pass
- PAPERLESS_URLS=https://docs.frostlabs.me
- PAPERLESS_ALLOWED_HOSTS=docs.frostlabs.me,docs.frostlabs.home
- PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.frostlabs.me,https://docs.frostlabs.home
- PAPERLESS_REDIS=redis://paperless_redis:6379 - PAPERLESS_REDIS=redis://paperless_redis:6379
- PAPERLESS_DBHOST=http://10.0.4.10 - PAPERLESS_DBHOST=10.0.4.10 # Fixed: removed http://
- PAPERLESS_DBPORT=5432 - PAPERLESS_DBPORT=5432
- PAPERLESS_DBNAME=paperless - PAPERLESS_DBNAME=paperless
- PAPERLESS_DBUSER=admin - PAPERLESS_DBUSER=admin
- PAPERLESS_DBPASS_FILE=/run/secrets/postgres-master
- PAPERLESS_SECRET_KEY_FILE=/run/secrets/paperless-secret-key
- PAPERLESS_TIME_ZONE=America/New_York - PAPERLESS_TIME_ZONE=America/New_York
- PAPERLESS_OCR_LANGUAGE=eng - PAPERLESS_OCR_LANGUAGE=eng
- PAPERLESS_URLS=https://docs.frostlabs.home
- PAPERLESS_ALLOWED_HOSTS=docs.frostlabs.home
- PAPERLESS_CONSUMER_POLLING=5 - PAPERLESS_CONSUMER_POLLING=5
- PAPERLESS_CONSUMER_DELETE_DUPLICATES=true - PAPERLESS_CONSUMER_DELETE_DUPLICATES=true
- PAPERLESS_CONSUMER_RECURSIVE=true - PAPERLESS_CONSUMER_RECURSIVE=true
@@ -41,7 +43,6 @@ services:
- PAPERLESS_CONSUMER_IGNORE_PATTERNS=[".DS_Store","._*",".stfolder",".stversions","Thumbs.db"] - PAPERLESS_CONSUMER_IGNORE_PATTERNS=[".DS_Store","._*",".stfolder",".stversions","Thumbs.db"]
- PAPERLESS_ENABLE_CLASSIFIER=true - PAPERLESS_ENABLE_CLASSIFIER=true
- PAPERLESS_ADMIN_USER=admin - PAPERLESS_ADMIN_USER=admin
- PAPERLESS_ADMIN_PASSWORD_FILE=/run/secrets/paperless-admin-pass
- PAPERLESS_ADMIN_MAIL=john.allisonwin@outlook.com - PAPERLESS_ADMIN_MAIL=john.allisonwin@outlook.com
networks: networks:
- homelab - homelab
@@ -50,16 +51,17 @@ services:
placement: placement:
constraints: constraints:
- node.hostname == p0 - node.hostname == p0
depends_on: depends_on: # Fixed: removed postgres dependency
- postgres
- paperless_redis - paperless_redis
networks: networks:
homelab: homelab:
external: true external: true
secrets: secrets:
paperless-admin-pass: paperless-admin-pass:
external: true external: true
paperless-secret-key: paperless-secret-key:
external: true external: true
postgres-master: postgres-master:
external: true external: true