improve dependency logic
This commit is contained in:
+3
-2
@@ -6,6 +6,7 @@ x-common-service:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
TZ: "${TZ:-Etc/UTC}"
|
TZ: "${TZ:-Etc/UTC}"
|
||||||
|
PROFILE_SERVER: "${PROFILE_SERVER:-mailserver}"
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
@@ -127,7 +128,7 @@ services:
|
|||||||
profiles:
|
profiles:
|
||||||
- roundcube
|
- roundcube
|
||||||
depends_on:
|
depends_on:
|
||||||
- mailserver
|
- ${PROFILE_SERVER:-mailserver}
|
||||||
environment:
|
environment:
|
||||||
ROUNDCUBEMAIL_DEFAULT_HOST: "${ROUNDCUBEMAIL_DEFAULT_HOST:-mail.example.com}"
|
ROUNDCUBEMAIL_DEFAULT_HOST: "${ROUNDCUBEMAIL_DEFAULT_HOST:-mail.example.com}"
|
||||||
ROUNDCUBEMAIL_SMTP_SERVER: "${ROUNDCUBEMAIL_SMTP_SERVER:-mail.example.com}"
|
ROUNDCUBEMAIL_SMTP_SERVER: "${ROUNDCUBEMAIL_SMTP_SERVER:-mail.example.com}"
|
||||||
@@ -146,7 +147,7 @@ services:
|
|||||||
profiles:
|
profiles:
|
||||||
- rainloop
|
- rainloop
|
||||||
depends_on:
|
depends_on:
|
||||||
- mailserver
|
- ${PROFILE_SERVER:-mailserver}
|
||||||
environment:
|
environment:
|
||||||
RAINLOOP_DEFAULT_HOST: "${RAINLOOP_DEFAULT_HOST:-mail.example.com}"
|
RAINLOOP_DEFAULT_HOST: "${RAINLOOP_DEFAULT_HOST:-mail.example.com}"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user