todo/src/docker-compose.prod.yml

38 lines
614 B
YAML
Raw Normal View History

2021-11-14 18:56:17 +01:00
version: "3"
services:
db:
2021-11-14 19:19:01 +01:00
restart: always
2021-11-14 18:56:17 +01:00
build:
context: backend/db
2021-11-14 19:27:53 +01:00
ports:
- 27017:27017
volumes:
- './data/db:/data/db'
2021-11-14 19:08:30 +01:00
env_file:
2021-11-14 19:27:53 +01:00
- .env
2021-11-14 18:56:17 +01:00
server:
2021-11-14 19:19:01 +01:00
restart: always
2021-11-14 18:56:17 +01:00
build:
context: backend/server
ports:
2021-11-14 19:16:50 +01:00
- 12009:80
2021-11-14 19:08:30 +01:00
env_file:
2021-11-14 19:27:53 +01:00
- .env
2021-11-14 18:56:17 +01:00
environment:
MONGODB__Host: db
MONGODB__Port: 27017
MONGODB__Database: todo
depends_on:
- db
client:
2021-11-14 19:19:01 +01:00
restart: always
2021-11-14 18:56:17 +01:00
build:
context: client
2021-11-14 19:37:04 +01:00
args:
NEXT_PUBLIC_SERVER_URL: "https://api-todo.front.kjuulh.io"
2021-11-14 18:56:17 +01:00
ports:
2021-11-14 19:16:50 +01:00
- 12008:3000