-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
107 lines (104 loc) · 2.24 KB
/
docker-compose.yaml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '3'
networks:
aether:
driver: bridge
services:
isengard:
build:
dockerfile: Dockerfile
context: ./isengard
container_name: isengard
environment:
- GO_ENV=production
- ISENGARD_PORT=8000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 1s
timeout: 10s
retries: 50
volumes:
- ./isengard:/usr/app
working_dir: /usr/app
ports:
- "8000:8000"
networks:
- aether
mordor:
build:
dockerfile: Dockerfile
context: ./mordor
container_name: mordor
environment:
- NODE_ENV=development
- MORDOR_PORT=4000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/"]
interval: 1s
timeout: 10s
retries: 50
volumes:
- ./mordor:/usr/app
working_dir: /usr/app
ports:
- "4000:4000"
networks:
- aether
gateway:
depends_on:
mordor:
condition: service_started
isengard:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6473/"]
interval: 1s
timeout: 10s
retries: 50
build:
dockerfile: Dockerfile
context: ./gateway
container_name: gateway
environment:
- NODE_ENV=development
- MORDOR_PORT=4000
- ISENGARD_PORT=8000
- MORDOR_HOST=mordor
- ISENGARD_HOST=isengard
volumes:
- ./gateway:/usr/app
working_dir: /usr/app
ports:
- "6473:6473"
networks:
- aether
shire:
build:
dockerfile: Dockerfile
context: ./shire
container_name: shire
environment:
- NODE_ENV=development
- API_URL=http://localhost:6473/query
volumes:
- ./shire:/usr/app
working_dir: /usr/app
ports:
- "3000:3000"
networks:
- aether
gandalf_the_green:
build:
dockerfile: Dockerfile
context: ./test
container_name: gandalf_the_green
stdin_open: true # docker run -i
tty: true # docker run -t
environment:
- API_URL=http://gateway:6473/query
- NODE_ENV=development
volumes:
- ./test:/usr/app
command: /bin/bash
networks:
- aether
working_dir: /usr/app