-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
45 lines (41 loc) · 848 Bytes
/
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
services:
client:
container_name: chc-gaming-client
image: chc-gaming-client:0.1.0
build:
context: client
dockerfile: Dockerfile
command: node server.js
restart: unless-stopped
networks:
- shared-network
api:
container_name: chc-gaming-api
image: chc-gaming-api:0.1.0
build:
context: server
dockerfile: Dockerfile
command: node server.js
restart: unless-stopped
networks:
- shared-network
healthcheck:
test: ["CMD", "curl", "http:https://api:5555"]
interval: 5s
timeout: 3s
retries: 6
nginx:
depends_on:
- api
- client
restart: always
build:
dockerfile: Dockerfile
context: ./nginx
ports:
- 3000:80
- 5555:5555
networks:
- shared-network
networks:
shared-network: