updating volume path and deploy--constraints.

This commit is contained in:
2026-06-05 11:55:07 -05:00
parent 4b1590107b
commit d0a5ff708b

View File

@@ -52,7 +52,7 @@ services:
# - APP_SECRET_FILE=/run/secrets/app_secret # - APP_SECRET_FILE=/run/secrets/app_secret
# - NEXTAUTH_SECRET_FILE=/run/secrets/nextauth_secret # - NEXTAUTH_SECRET_FILE=/run/secrets/nextauth_secret
volumes: volumes:
- proxcenter_data:/app/data - ${DockerData}/proxcenter/frontend_data:/app/data
# secrets: # secrets:
# - app_secret # - app_secret
# - nextauth_secret # - nextauth_secret
@@ -71,7 +71,7 @@ services:
placement: placement:
constraints: constraints:
# Keep the node-local proxcenter_data volume on the intended primary node. # Keep the node-local proxcenter_data volume on the intended primary node.
- node.labels.proxcenter.storage == true - node.platform.os == linux
restart_policy: restart_policy:
condition: on-failure condition: on-failure
delay: 5s delay: 5s
@@ -97,7 +97,7 @@ services:
- POSTGRES_DB=${POSTGRES_DB:-proxcenter} - POSTGRES_DB=${POSTGRES_DB:-proxcenter}
- POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C - POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - ${DockerData}/proxcenter/postgres_data:/var/lib/postgresql/data
# Port is intentionally not published. Postgres is reachable only # Port is intentionally not published. Postgres is reachable only
# over the internal overlay network. Uncomment to expose for debugging: # over the internal overlay network. Uncomment to expose for debugging:
# ports: # ports:
@@ -129,7 +129,7 @@ services:
placement: placement:
constraints: constraints:
# Keep the node-local postgres_data volume on the intended primary node. # Keep the node-local postgres_data volume on the intended primary node.
- node.labels.proxcenter.storage == true - node.platform.os == linux
# ======================================== # ========================================
# Networks # Networks