forked from CardSorter/CardSorterClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (67 loc) · 1.54 KB
/
docker-compose.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3'
services:
auth:
image: node:12.20
container_name: card_sorter_auth
restart: "no"
working_dir: /home/node/app
volumes:
- ./auth:/home/node/app
command: "npm start"
ports:
- 3001:3001
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3001" ]
interval: 15s
timeout: 10s
retries: 3
start_period: 1m30s
designer:
build: designer
container_name: card_sorter_designer
restart: "no"
volumes:
- ./designer/public:/app/public
- ./designer/src:/app/src
- ./shared:/app/src/assets/shared
stdin_open: true
tty: true
ports:
- 3002:3002
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3002" ]
interval: 15s
timeout: 10s
retries: 3
start_period: 1m30s
sorter:
image: node:12.20
container_name: card_sorter_sorter
restart: "no"
working_dir: /home/node/app
volumes:
- ./sorter:/home/node/app
command: "npm start"
ports:
- 3003:3003
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3003" ]
interval: 15s
timeout: 10s
retries: 3
start_period: 1m30s
httpd:
image: amd64/nginx
container_name: card_sorter_httpd
restart: "no"
volumes:
- ./nginx/conf.d/default.dev.conf:/etc/nginx/conf.d/default.conf
ports:
- 3000:3000
depends_on:
auth:
condition: service_healthy
designer:
condition: service_healthy
sorter:
condition: service_healthy