-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 831 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 831 Bytes
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
version: "3.9"
volumes:
message_broker_data:
networks:
messagenet:
services:
message_broker:
image: 'rabbitmq:3-management-alpine'
ports:
- "15672:15672" # port to expose the rabbitmq management interface
- "5672:5672" # port to expose the rabbitmq broker interface
volumes:
- message_broker_data:/var/lib/rabbitmq
networks:
- messagenet
server:
build: ./Server
depends_on:
- message_broker
stdin_open: true
tty: true
environment:
- BROKER_HOST=message_broker
- BROKER_QUEUE=sync_queue
networks:
- messagenet
client:
build: ./Client
depends_on:
- message_broker
stdin_open: true
tty: true
environment:
- BROKER_HOST=message_broker
- BROKER_QUEUE=sync_queue
networks:
- messagenet