-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (55 loc) · 1.25 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
version: '3'
services:
consul-agent-1: &consul-agent
image: consul:latest
networks:
- consul-demo
command: "agent -retry-join consul-server-bootstrap -client 0.0.0.0"
consul-agent-2:
<<: *consul-agent
consul-agent-3:
<<: *consul-agent
consul-server-1: &consul-server
<<: *consul-agent
command: "agent -server -retry-join consul-server-bootstrap -client 0.0.0.0"
consul-server-2:
<<: *consul-server
consul-server-bootstrap:
<<: *consul-agent
ports:
- "8400:8400"
- "8500:8500"
- "8600:8600"
- "8600:8600/udp"
command: "agent -server -bootstrap-expect 3 -ui -client 0.0.0.0"
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: "moirai"
ports:
- "5432:5432"
networks:
- moirai_web
moirai:
ports:
- "8088:8088"
build:
context: .
args:
- service_name=moirai
environment:
- CONFIG_STORAGE=http://consul-server-bootstrap:8500
- CONFIG_NAMESPACE=moirai/backend_docker
- ENV=dev
command: "./moirai start moirai"
networks:
- moirai_web
- consul-demo
networks:
consul-demo:
moirai_web:
driver: bridge
ipam:
config:
- subnet: 12.11.11.0/16