-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.09 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
---
version: '3.4'
services:
db:
image: "postgres:11"
container_name: "postgres"
ports:
- "54320:5432"
volumes:
- ./data/db:/var/lib/postgresql/data
# db-slave:
# image: "nebirhos/postgres-replication"
# depends_on:
# - db
# environment:
# - POSTGRES_MASTER_SERVICE_HOST=db
# - REPLICATION_ROLE=slave
# ports:
# - "54321:5432"
# volumes:
# - ./data/db-slave:/var/lib/postgresql/data
orion-a:
image: pegasyseng/orion:${ORION_VERSION}
depends_on:
- db
volumes:
- ./config/orion:/opt/orion/conf/
command: /opt/orion/bin/orion /opt/orion/conf/orion.conf
ports:
- 8881:8888
orion-b:
image: pegasyseng/orion:${ORION_VERSION}
depends_on:
- db
volumes:
- ./config/orion:/opt/orion/conf/
command: /opt/orion/bin/orion /opt/orion/conf/orion.conf
ports:
- 8882:8888
lb:
image: haproxy
depends_on:
- orion-a
- orion-b
volumes:
- ./config/haproxy:/usr/local/etc/haproxy
ports:
- 9000:9000
- 8080:8080
- 8888:8888