Skip to content

Commit 66d9720

Browse files
authored
Merge pull request #19 from joaocps/main
Allow MONGODB_ADVERTISED_HOSTNAME to be configured via environment var
2 parents 4704a41 + 44090ae commit 66d9720

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

compose.database.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ services:
6868
MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs0}
6969
MONGODB_PORT_NUMBER: ${MONGODB_PORT_NUMBER:-27017}
7070
MONGODB_URI: ${MONGODB_URI:-mongodb://mongodb:27017/?directConnection=true}
71+
MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
7172
volumes:
7273
- ${MONGODB_HOST_PATH:-mongodb_data}:/data/db:rw
7374
logging:

0 commit comments

Comments
 (0)