-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
51 lines (44 loc) · 1013 Bytes
/
docker-compose.prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.8'
name: turbo-docker-monorepo-prod
x-defaults:
&defaults
init: true
tty: true
networks:
- monorepo_network
services:
frontend:
<<: *defaults
depends_on:
- backend
ports:
- "3000:3000"
command: yarn workspace frontend server
environment:
- PORT=3000
- NODE_ENV=production
build:
args:
APP: frontend
START_COMMAND: server
context: .
dockerfile: ./dockerfiles/Dockerfile.next.prod
####################################################################
backend:
<<: *defaults
ports:
- "3333:3333"
command: yarn workspace backend start:prod
environment:
- PORT=3333
- IN_CONTAINER=1
- NODE_ENV=production
build:
args:
APP: backend
START_COMMAND: start:prod
context: .
dockerfile: ./dockerfiles/Dockerfile.nest.prod
####################################################################
networks:
monorepo_network: