todo/src/docker-compose.prod.yml
2021-11-14 19:37:04 +01:00

38 lines
614 B
YAML

version: "3"
services:
db:
restart: always
build:
context: backend/db
ports:
- 27017:27017
volumes:
- './data/db:/data/db'
env_file:
- .env
server:
restart: always
build:
context: backend/server
ports:
- 12009:80
env_file:
- .env
environment:
MONGODB__Host: db
MONGODB__Port: 27017
MONGODB__Database: todo
depends_on:
- db
client:
restart: always
build:
context: client
args:
NEXT_PUBLIC_SERVER_URL: "https://api-todo.front.kjuulh.io"
ports:
- 12008:3000