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
|
2023-12-23 13:01:38 +01:00
|
|
|
env_file:
|
|
|
|
- .env
|
2021-11-14 18:31:55 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
client:
|
|
|
|
build:
|
|
|
|
context: client
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|