kjuulh
c89a0958f8
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
34 lines
563 B
YAML
34 lines
563 B
YAML
version: "3"
|
|
|
|
services:
|
|
db:
|
|
build:
|
|
context: backend/db
|
|
ports:
|
|
- 27017:27017
|
|
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
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
- db
|
|
|
|
client:
|
|
build:
|
|
context: client
|
|
ports:
|
|
- 3000:3000
|