-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
53 lines (49 loc) · 980 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
52
53
version: "3.7"
services:
proxy:
container_name: di-proxy
build:
context: proxy/.
dockerfile: Dockerfile.prod
ports:
- 99:80
restart: on-failure:10
api:
container_name: di-api
build:
context: server/.
dockerfile: Dockerfile.prod
ports:
- 8000:80
volumes:
- ./server:/app
- /var/run/docker:/var/run/docker
stdin_open: true
tty: true
depends_on:
- database
env_file:
- .env
restart: on-failure:10
database:
container_name: di-db
build: database/.
volumes:
- ./database/db_data:/var/lib/postgresql
env_file:
- .env
restart: on-failure:10
client:
container_name: di-ui
build:
context: client/.
dockerfile: Dockerfile.prod
stdin_open: true
volumes:
- ./client:/app
- ./client/node_modules:/app/node_modules
ports:
- 3000:3000
env_file:
- .env
restart: on-failure:10