Add prod env to docker-compose
This commit is contained in:
parent
310bc219b5
commit
f8b1d0c36a
@ -6,18 +6,17 @@ services:
|
|||||||
context: backend/db
|
context: backend/db
|
||||||
ports:
|
ports:
|
||||||
- 27017:27017
|
- 27017:27017
|
||||||
environment:
|
env_file:
|
||||||
MONGO_INITDB_ROOT_USERNAME: root
|
- .prod.env
|
||||||
MONGO_INITDB_ROOT_PASSWORD: example
|
|
||||||
|
|
||||||
server:
|
server:
|
||||||
build:
|
build:
|
||||||
context: backend/server
|
context: backend/server
|
||||||
ports:
|
ports:
|
||||||
- 5000:80
|
- 5000:80
|
||||||
|
env_file:
|
||||||
|
- .prod.env
|
||||||
environment:
|
environment:
|
||||||
MONGODB__Username: root
|
|
||||||
MONGODB__Password: example
|
|
||||||
MONGODB__Host: db
|
MONGODB__Host: db
|
||||||
MONGODB__Port: 27017
|
MONGODB__Port: 27017
|
||||||
MONGODB__Database: todo
|
MONGODB__Database: todo
|
||||||
|
Loading…
Reference in New Issue
Block a user