Skip to content

Commit

Permalink
fix mongo port number
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewiski committed Feb 18, 2024
1 parent 33a619f commit 3126801
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dockerCompose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ services:
- ../data/logs:/usr/src/uisptools/logs
container_name: uisptools${UISPTOOLS_ALIAS}
environment:
MONGODBSERVERURL: "${MONGODBSERVERURL:-mongodb://${MONGODBUSERNAME:-uisptools}:${MONGODBPASSWORD:-U!spT00ls!}@uisptools_mongodb${UISPTOOLS_ALIAS}:${UISPTOOLS_MONGOPORT:-49017}/}"
#Note that the port is always 27017 as we are running with in the same network as the mongodb so not using the port mapping
MONGODBSERVERURL: "${MONGODBSERVERURL:-mongodb://${MONGODBUSERNAME:-uisptools}:${MONGODBPASSWORD:-U!spT00ls!}@uisptools_mongodb${UISPTOOLS_ALIAS}:27017/}"
GOOGLEAPIKEY: "${GOOGLEAPIKEY:-}"
depends_on:
- uisptools_mongodb
Expand All @@ -32,10 +33,10 @@ services:
- ../data/mongodb/docker-entrypoint-initdb.d/01_createDatabase.js:/docker-entrypoint-initdb.d/01_createDatabase.js:ro
- ../data/mongodb/docker-entrypoint-initdb.d/02_initWebServerPages.js:/docker-entrypoint-initdb.d/02_initWebServerPages.js:ro
#Remove this line for Production only here for development direct connect to mongo
expose:
- "${UISPTOOLS_MONGOPORT:-49017}"
ports:
- "${UISPTOOLS_MONGOPORT:-49017}:27017"
#expose:
# - "${UISPTOOLS_MONGOPORT:-49017}"
#ports:
# - "${UISPTOOLS_MONGOPORT:-49017}:27017"
restart: always
networks:
- uisptoolsnetwork
Expand Down

0 comments on commit 3126801

Please sign in to comment.