Add env_file configuration to db, redis, seafile, and seadoc services in swarm-compose.yml for improved environment variable management.
This commit is contained in:
@@ -42,6 +42,8 @@ services:
|
||||
|
||||
db:
|
||||
image: ${SEAFILE_DB_IMAGE:-mariadb:10.11}
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${INIT_SEAFILE_MYSQL_ROOT_PASSWORD:-}
|
||||
- MYSQL_LOG_CONSOLE=true
|
||||
@@ -68,6 +70,8 @@ services:
|
||||
|
||||
redis:
|
||||
image: ${SEAFILE_REDIS_IMAGE:-redis}
|
||||
env_file:
|
||||
- stack.env
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
@@ -92,6 +96,8 @@ services:
|
||||
|
||||
seafile:
|
||||
image: ${SEAFILE_IMAGE:-seafileltd/seafile-pro-mc:13.0-latest}
|
||||
env_file:
|
||||
- stack.env
|
||||
volumes:
|
||||
- seafile_shared:/shared
|
||||
environment:
|
||||
@@ -164,6 +170,8 @@ services:
|
||||
|
||||
seadoc:
|
||||
image: ${SEADOC_IMAGE:-seafileltd/sdoc-server:2.0-latest}
|
||||
env_file:
|
||||
- stack.env
|
||||
volumes:
|
||||
- seadoc_shared:/shared
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user