-
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) · 898 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (37 loc) · 898 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'
services:
rabbit:
hostname: rabbit
image: rabbitmq:3-management
networks:
testing_net:
ipv4_address: 172.28.0.2 #cpp couldn't resolve host rabbit, had to put ip
consumer:
build:
context: ./consume
dockerfile: Dockerfile
links:
- rabbit
depends_on:
- rabbit
networks:
- testing_net
publisher:
hostname: publisher
build:
context: ./publish
dockerfile: Dockerfile
ports:
- "8000:8000"
links:
- rabbit
depends_on:
- rabbit
networks:
- testing_net
networks:
testing_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16