forked from pg-sharding/spqr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
79 lines (79 loc) · 2.25 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
services:
spqr-shard-image:
image: spqr-shard-image
build:
dockerfile: ./docker/shard/Dockerfile
context: .
spqr-base-image:
image: spqr-base-image
build:
dockerfile: ./docker/spqr/Dockerfile
context: .
shard1:
image: spqr-shard-image
environment:
- POSTGRES_USER=user1
- POSTGRES_DB=db1
ports:
- "7432:6432"
hostname: spqr_shard_1
container_name: spqr_shard_1
shard2:
image: spqr-shard-image
environment:
- POSTGRES_USER=user1
- POSTGRES_DB=db1
ports:
- "7433:6432"
hostname: spqr_shard_2
container_name: spqr_shard_2
coordinator:
build:
dockerfile: ./docker/coordinator/Dockerfile
context: .
ports:
- "7002:7002"
- "7003:7003"
hostname: spqr_coordinator
container_name: spqr_coordinator
depends_on:
- qdb01
qdb01:
image: 'bitnami/etcd:latest'
container_name: spqr_qdb_0_1
hostname: spqr_qdb_0_1
environment:
ALLOW_NONE_AUTHENTICATION: "yes"
ETCD_LOG_LEVEL: "debug"
ports:
- "2379:2379"
router:
build:
dockerfile: ./docker/router/Dockerfile
context: .
ports:
- "8432:6432"
- "7013:7000"
hostname: spqr_router_1_1
container_name: spqr_router_1_1
environment:
- ROUTER_CONFIG=/spqr/docker/router/cfg.yaml
- COORDINATOR_CONFIG=/spqr/docker/coordinator/cfg.yaml
- ROUTER_LOG=/var/log/spqr-router.log
router2:
build:
dockerfile: ./docker/router/Dockerfile
context: .
ports:
- "8433:6432"
- "7023:7003"
hostname: spqr_router_1_2
container_name: spqr_router_1_2
environment:
- ROUTER_CONFIG=/spqr/docker/router/cfg2.yaml
- COORDINATOR_CONFIG=/spqr/docker/coordinator/cfg2.yaml
- ROUTER_LOG=/var/log/spqr-router.log
slicer:
build:
dockerfile: ./docker/slicer/Dockerfile
context: .