todo/src/docker-compose.yml

32 lines
536 B
YAML
Raw Normal View History

2021-11-14 18:31:55 +01:00
version: "3"
2021-11-11 21:44:15 +01:00
services:
db:
build:
context: backend/db
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
2021-11-14 18:31:55 +01:00
server:
build:
context: backend/server
ports:
- 5000:80
environment:
MONGODB__Username: root
MONGODB__Password: example
MONGODB__Host: db
MONGODB__Port: 27017
MONGODB__Database: todo
depends_on:
- db
client:
build:
context: client
ports:
- 3000:3000