-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose-smoke2-test.yml
68 lines (61 loc) · 2.14 KB
/
docker-compose-smoke2-test.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
services:
redis1:
container_name: beetle-redis1
image: redis:6.0
ports:
- "6371:6371"
volumes:
- ./tmp/master-dir:/data
command:
redis-server --port 6371
redis2:
container_name: beetle-redis2
image: redis:6.0
ports:
- "6381:6381"
command: redis-server --port 6381
volumes:
- ./tmp/slave-dir:/data
redis3:
container_name: beetle-redis3
image: redis:6.0
ports:
- "6372:6372"
command:
redis-server --port 6372
redis4:
container_name: beetle-redis4
image: redis:6.0
ports:
- "6382:6382"
command: redis-server --port 6382
beetle-config-client1:
container_name: beetle-config-client1
image: xingarchitects/gobeetle
entrypoint: >
bash -c "echo system/redis1:6371 > redis-master-client-1.txt &&
echo system2/redis3:6372 >> redis-master-client-1.txt &&
cat redis-master-client-1.txt &&
/usr/bin/beetle configuration_client -v --redis-master-file redis-master-client-1.txt --id client1 --server beetle-config-server"
beetle-config-client2:
container_name: beetle-config-client2
image: xingarchitects/gobeetle
entrypoint: >
bash -c "echo system/redis1:6371 > redis-master-client-2.txt &&
echo system2/redis3:6372 >> redis-master-client-2.txt &&
cat redis-master-client-2.txt &&
/usr/bin/beetle configuration_client -v --redis-master-file redis-master-client-2.txt --id client2 --server beetle-config-server"
beetle-config-server:
container_name: beetle-config-server
image: xingarchitects/gobeetle
ports:
- "9650:9650"
entrypoint: >
bash -c "echo system/redis1:6371 > redis-master-server.txt &&
echo system2/redis3:6372 >> redis-master-server.txt &&
/usr/bin/beetle configuration_server -v --redis-master-file redis-master-server.txt --redis-servers 'system/redis1:6371,redis2:6381;system2/redis3:6372,redis4:6382' --client-ids=client1,client2"
beetle-notification-mailer:
container_name: beetle-notification-mailer
image: xingarchitects/gobeetle
entrypoint: >
/usr/bin/beetle notification_mailer -v --server beetle-config-server