-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.cluster.yml
104 lines (97 loc) · 2.66 KB
/
docker-compose.cluster.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
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
---
version: "3.3"
services:
zoo1:
image: bitnami/zookeeper:${ZOO_TAG}
container_name: zkn1
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=0.0.0.0:2888:3888
ALLOW_ANONYMOUS_LOGIN: "yes"
sd1:
build:
context: dockerfiles/
dockerfile: dockerfile-stardog
args:
- STARDOG_TAG=${STARDOG_TAG}
- STARDOG_REPO=${STARDOG_REPO}
- NODE_TYPE=node
- SSH_USER=${SSH_USER}
- SSH_PASS=${SSH_PASS}
container_name: ${STARDOG_HOSTNAME_NODE_1}
entrypoint: ["/bin/bash", "-c"]
command: ["/var/start.sh"]
depends_on:
- zoo1
sd2:
build:
context: dockerfiles/
dockerfile: dockerfile-stardog
args:
- STARDOG_TAG=${STARDOG_TAG}
- STARDOG_REPO=${STARDOG_REPO}
- NODE_TYPE=node
- SSH_USER=${SSH_USER}
- SSH_PASS=${SSH_PASS}
container_name: ${STARDOG_HOSTNAME_NODE_2}
entrypoint: ["/bin/bash", "-c"]
command: ["/var/start.sh"]
depends_on:
- zoo1
sdstandby:
build:
context: dockerfiles/
dockerfile: dockerfile-stardog
args:
- STARDOG_TAG=${STARDOG_TAG}
- STARDOG_REPO=${STARDOG_REPO}
- NODE_TYPE=standby
- SSH_USER=${SSH_USER}
- SSH_PASS=${SSH_PASS}
container_name: ${STARDOG_HOSTNAME_STANDBY}
entrypoint: ["/bin/bash", "-c"]
command: ["/var/start-standby.sh"]
depends_on:
- zoo1
sdcache1:
build:
context: dockerfiles/
dockerfile: dockerfile-stardog
args:
- STARDOG_TAG=${STARDOG_TAG}
- STARDOG_REPO=${STARDOG_REPO}
- NODE_TYPE=cache
- SSH_USER=${SSH_USER}
- SSH_PASS=${SSH_PASS}
# underscores not allowed for cache target hostnames
entrypoint: ["/bin/bash", "-c"]
command: ["/var/start.sh"]
container_name: ${STARDOG_HOSTNAME_CACHE}
depends_on:
- zoo1
sdlb:
build:
context: dockerfiles/
dockerfile: dockerfile-haproxy
args:
- TAG=${HAPROXY_TAG}
container_name: ${STARDOG_LB}
ports:
- "127.0.0.1:5820:5820"
depends_on:
- zoo1
- sd1
- sd2
# two mysql servers are used instead of one so we can simulate multiple datasources.
mysql-music:
build:
context: .
dockerfile: dockerfiles/dockerfile-mysql-music
# this value is hardcoded in conftest.py (music_options fixture), for multiple datasource / vg tests.
# it's also hardcoded in test/test_admin.py for testing imports.
container_name: pystardog_mysql_music
mysql-videos:
build:
context: .
dockerfile: dockerfiles/dockerfile-mysql-videos
container_name: pystardog_mysql_videos