-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (53 loc) · 1.77 KB
/
docker-compose.yaml
File metadata and controls
57 lines (53 loc) · 1.77 KB
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
services:
# The broker for the mesh
rabbit-broker:
image: rabbitmq:3-management
ports:
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=dripline
- RABBITMQ_DEFAULT_PASS=dripline
healthcheck:
test: ["CMD-SHELL", "curl -u dripline:dripline http://rabbit-broker:15672/api/overview &> /dev/null || exit 1"]
# The classic key-value store, a configuration based on the base Service class
key-value-store:
image: ghcr.io/project8/dragonfly:${DGFLY_IMG_TAG:-latest-dev}
depends_on:
rabbit-broker:
condition: service_healthy
volumes:
- ./examples/key-value-store.yaml:/root/key-value-store.yaml
- ./dripline_mesh.yaml:/root/.dripline_mesh.yaml
environment:
- DRIPLINE_USER=dripline
- DRIPLINE_PASSWORD=dripline
command: >
bash -c "dl-serve -vv -c /root/key-value-store.yaml"
# The classic key-value-store service with a jitter endpoint
jitter:
image: ghcr.io/project8/dragonfly:${DGFLY_IMG_TAG:-latest-dev}
depends_on:
rabbit-broker:
condition: service_healthy
volumes:
- ./examples/jitter_example.yaml:/root/jitter_example.yaml
- ./dripline_mesh.yaml:/root/.dripline_mesh.yaml
environment:
- DRIPLINE_USER=dripline
- DRIPLINE_PASSWORD=dripline
command: >
bash -c "dl-serve -vv -c /root/jitter_example.yaml"
AlarmSystem:
# this image is build from this branch
image: dragonfly_docker:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./AlarmSystem.yaml:/root/AlarmSystem.yaml
environment:
- DRIPLINE_USER=dripline
- DRIPLINE_PASSWORD=dripline
command:
- python3
- /usr/local/src_dragonfly/dragonfly/watchdog.py
- --config
- /root/AlarmSystem.yaml