Update docker-compose.yml

add network definitions
This commit is contained in:
LRVT 2023-04-02 17:11:37 +02:00 committed by GitHub
parent e442b6fa15
commit a2ae0fd5c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,8 @@ services:
# - traefik.docker.network=proxy # - traefik.docker.network=proxy
# # Part for local lan services only; disable to expose externally # # Part for local lan services only; disable to expose externally
# - traefik.http.routers.rocketchat.middlewares=local-ipwhitelist@file # - traefik.http.routers.rocketchat.middlewares=local-ipwhitelist@file
#networks:
# - proxy
environment: environment:
MONGO_URL: "${MONGO_URL:-\ MONGO_URL: "${MONGO_URL:-\
mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\ mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
@ -45,3 +47,9 @@ services:
MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-mongodb} MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
MONGODB_ENABLE_JOURNAL: ${MONGODB_ENABLE_JOURNAL:-true} MONGODB_ENABLE_JOURNAL: ${MONGODB_ENABLE_JOURNAL:-true}
ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD:-yes} ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD:-yes}
#networks:
# - proxy
#networks:
# proxy:
# external: true