Fixed deployment

This commit is contained in:
2021-11-14 18:31:55 +01:00
parent 6ffc55f64e
commit b7a1a0be03
16 changed files with 152 additions and 35 deletions

View File

@@ -1,3 +1,5 @@
version: "3"
services:
db:
build:
@@ -7,3 +9,23 @@ services:
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
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