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:
@@ -22,6 +22,8 @@ services:
|
||||
image: gitea/gitea:latest
|
||||
restart: unless-stopped
|
||||
networks: [dev, edge]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
@@ -54,6 +56,8 @@ services:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
networks: [dev]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
POSTGRES_USER: gitea
|
||||
POSTGRES_PASSWORD: ${GITEA_DB_PASSWORD}
|
||||
@@ -72,6 +76,8 @@ services:
|
||||
image: lscr.io/linuxserver/code-server:latest
|
||||
restart: unless-stopped
|
||||
networks: [dev, edge]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
@@ -101,6 +107,8 @@ services:
|
||||
image: joxit/docker-registry-ui:latest
|
||||
restart: unless-stopped
|
||||
networks: [dev, edge]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- SINGLE_REGISTRY=true
|
||||
- REGISTRY_TITLE=Valhalla Registry
|
||||
@@ -125,6 +133,8 @@ services:
|
||||
image: lscr.io/linuxserver/bookstack:latest
|
||||
restart: unless-stopped
|
||||
networks: [dev, edge]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
@@ -149,6 +159,8 @@ services:
|
||||
image: lscr.io/linuxserver/mariadb:latest
|
||||
restart: unless-stopped
|
||||
networks: [dev]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
@@ -172,6 +184,8 @@ services:
|
||||
restart: unless-stopped
|
||||
networks: [dev, edge]
|
||||
command: node web/server.js
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- NEXT_PUBLIC_API_BASE_URL=https://plane.ginnoir.com
|
||||
- HOSTNAME=0.0.0.0
|
||||
@@ -182,6 +196,8 @@ services:
|
||||
restart: unless-stopped
|
||||
networks: [dev, edge]
|
||||
command: ./bin/docker-entrypoint-api.sh
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- SECRET_KEY=${PLANE_SECRET_KEY}
|
||||
- DEBUG=0
|
||||
@@ -211,6 +227,8 @@ services:
|
||||
restart: unless-stopped
|
||||
networks: [dev]
|
||||
command: ./bin/docker-entrypoint-worker.sh
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- SECRET_KEY=${PLANE_SECRET_KEY}
|
||||
- DEBUG=0
|
||||
@@ -237,6 +255,8 @@ services:
|
||||
restart: unless-stopped
|
||||
networks: [dev]
|
||||
command: ./bin/docker-entrypoint-beat.sh
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- SECRET_KEY=${PLANE_SECRET_KEY}
|
||||
- DEBUG=0
|
||||
@@ -257,6 +277,8 @@ services:
|
||||
restart: "no"
|
||||
networks: [dev]
|
||||
command: ./bin/docker-entrypoint-migrator.sh
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- SECRET_KEY=${PLANE_SECRET_KEY}
|
||||
- DATABASE_URL=postgresql://plane:${PLANE_DB_PASSWORD}@postgres_plane:5432/plane
|
||||
@@ -281,6 +303,8 @@ services:
|
||||
/usr/bin/mc mb plane_minio/uploads --ignore-existing;
|
||||
exit 0;
|
||||
"
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- MINIO_USER=${PLANE_MINIO_USER}
|
||||
- MINIO_PASSWORD=${PLANE_MINIO_PASSWORD}
|
||||
@@ -290,6 +314,8 @@ services:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
networks: [dev]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
POSTGRES_USER: plane
|
||||
POSTGRES_PASSWORD: ${PLANE_DB_PASSWORD}
|
||||
@@ -322,6 +348,8 @@ services:
|
||||
restart: unless-stopped
|
||||
networks: [dev]
|
||||
command: server /data --console-address ":9001"
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${PLANE_MINIO_USER}
|
||||
MINIO_ROOT_PASSWORD: ${PLANE_MINIO_PASSWORD}
|
||||
|
||||
Reference in New Issue
Block a user