Mongodb uses the correct env var
This commit is contained in:
parent
6fd06af9d2
commit
2dc9c009c9
@ -39,10 +39,12 @@ services:
|
|||||||
|
|
||||||
# Uncomment to change startup options
|
# Uncomment to change startup options
|
||||||
environment:
|
environment:
|
||||||
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USERNAME}
|
MONGO_INITDB_ROOT_USERNAME: ${MONDODB_USERNAME}
|
||||||
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
|
MONGO_INITDB_ROOT_PASSWORD: ${MONDODB_PASSWORD}
|
||||||
MONGO_INITDB_DATABASE: ${MONGODB_DATABASE}
|
MONGO_INITDB_DATABASE: ${MONGODB_DATABASE}
|
||||||
MONGO_INITDB_PORT: ${MONGODB_PORT}
|
MONGO_INITDB_PORT: ${MONGODB_PORT}
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
# Add "forwardPorts": ["27017"] to **devcontainer.json** to forward MongoDB locally.
|
# Add "forwardPorts": ["27017"] to **devcontainer.json** to forward MongoDB locally.
|
||||||
# (Adding the "ports" property to this file will not forward from a Codespace.)
|
# (Adding the "ports" property to this file will not forward from a Codespace.)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user