-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose-smoke-test.yml
48 lines (43 loc) · 1.56 KB
/
docker-compose-smoke-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
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
beetle-config-client1:
container_name: beetle-config-client1
image: xingarchitects/gobeetle
entrypoint: >
bash -c "echo redis1:6371 > 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 redis1:6371 > 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 redis1:6371 > redis-master-server.txt &&
/usr/bin/beetle configuration_server -v --redis-master-file redis-master-server.txt --redis-servers redis1:6371,redis2:6381 --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