-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (55 loc) · 1.53 KB
/
docker-compose.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
version: '3.0'
services:
# Local rabbitmqserver
rabbitmq:
build : ./rabbitmqserver/
container_name: rabbitmq-container
image: rabbitmq:3.12-management
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
ports:
- 5672:5672
- 15672:15672
- 1883:1883
networks:
- default
controller:
build : ./distributed_ctrl_python/
container_name: controller-container
image: controller
working_dir: /distributed_ctrl_python
volumes:
- ./distributed_ctrl_python:/distributed_ctrl_python
# network_mode: "host"
# Uncomment for using local rabbitmqserver
# depends_on:
# rabbitmq:
# condition: service_healthy # Makes sure this container only starts with healthcheck in rabbitmq-container is returning OK.
networks:
- default
maestro:
build : ./distributed_oneway/
container_name: rabbitmqfmu-container
image: rabbitmqfmu
working_dir: /distributed_oneway
volumes:
- ./distributed_oneway:/distributed_oneway
- ./fmus:/fmus
# network_mode: "host"
depends_on:
controller:
condition: service_started
# Uncomment for using local rabbitmqserver
# rabbitmq:
# condition: service_healthy # Makes sure this container only starts with healthcheck in rabbitmq-container is returning OK.
networks:
- default
networks:
default:
driver: bridge