chore: add env_file: stack.env to all compose services
Portainer git-stack deployments require an explicit env_file reference in the compose file to load variables from the repo's stack.env. Adds env_file: [stack.env] before every service-level environment: block across all 10 stacks.
This commit is contained in:
@@ -14,6 +14,8 @@ services:
|
||||
pull_policy: ${FAMAPP_PULL_POLICY:-always}
|
||||
restart: unless-stopped
|
||||
networks: [famapp, edge]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
AUTH_URL: ${AUTH_URL}
|
||||
@@ -48,6 +50,8 @@ services:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
networks: [famapp]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
POSTGRES_USER: ${FAMAPP_DB_USER}
|
||||
POSTGRES_PASSWORD: ${FAMAPP_DB_PASSWORD}
|
||||
@@ -66,6 +70,8 @@ services:
|
||||
command: server /data --console-address ":9003"
|
||||
restart: unless-stopped
|
||||
networks: [famapp]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${famapp_MINIO_ROOT_USER}
|
||||
MINIO_ROOT_PASSWORD: ${famapp_MINIO_ROOT_PASSWORD}
|
||||
|
||||
Reference in New Issue
Block a user