Close the MongoDB port

This commit is contained in:
purple_emily
2024-02-04 12:28:17 +00:00
committed by iPromKnight
parent 050c22e11e
commit 562713f749

View File

@@ -40,7 +40,7 @@ services:
environment: environment:
PGUSER: postgres # needed for healthcheck. PGUSER: postgres # needed for healthcheck.
# # If you need the database to be accessible from outside, please open the below port. # # If you need the database to be accessible from outside, please open the below port.
# # Furthermore, please, please, please, change the username and password above. # # Furthermore, please, please, please, change the username and password in the .env file.
# # If you want to enhance your security even more, create a new user for the database with a strong password. # # If you want to enhance your security even more, create a new user for the database with a strong password.
# ports: # ports:
# - "5432:5432" # - "5432:5432"
@@ -55,8 +55,10 @@ services:
image: mongo:latest image: mongo:latest
env_file: env_file:
- .env - .env
ports: # # If you need the database to be accessible from outside, please open the below port.
- "27017:27017" # # Furthermore, please, please, please, change the username and password in the .env file.
# ports:
# - "27017:27017"
volumes: volumes:
- mongo:/data/db - mongo:/data/db
restart: *restart-policy restart: *restart-policy