env_file for portainer
This commit is contained in:
@@ -9,6 +9,8 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
retries: 5
|
retries: 5
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
|
env_file:
|
||||||
|
- stack.env
|
||||||
volumes:
|
volumes:
|
||||||
- database:/var/lib/postgresql/data
|
- database:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
@@ -40,6 +42,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- media:/media
|
- media:/media
|
||||||
- custom-templates:/templates
|
- custom-templates:/templates
|
||||||
|
env_file:
|
||||||
|
- stack.env
|
||||||
ports:
|
ports:
|
||||||
- "${COMPOSE_PORT_HTTP:-9000}:9000"
|
- "${COMPOSE_PORT_HTTP:-9000}:9000"
|
||||||
- "${COMPOSE_PORT_HTTPS:-9443}:9443"
|
- "${COMPOSE_PORT_HTTPS:-9443}:9443"
|
||||||
@@ -63,6 +67,8 @@ services:
|
|||||||
# on the mounted folders, so when removing this make sure the folders have the correct UID/GID
|
# on the mounted folders, so when removing this make sure the folders have the correct UID/GID
|
||||||
# (1000:1000 by default)
|
# (1000:1000 by default)
|
||||||
user: root
|
user: root
|
||||||
|
env_file:
|
||||||
|
- stack.env
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- media:/media
|
- media:/media
|
||||||
|
|||||||
Reference in New Issue
Block a user