-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (46 loc) · 1023 Bytes
/
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
version: "3"
services:
publish-service:
container_name: "publish-service"
build:
context: './publish'
environment:
- ACTIVE_MQ_ENDPOINT=http://activemq:1883
- ACTIVE_MQ_USERNAME=admin
- ACTIVE_MQ_PASWORD=admin
- ACTIVE_MQ_TOPIC=test
volumes:
- ./publish:/app
- /app/node_modules
ports:
- 3000:3000
networks:
- microservice
depends_on:
- activemq
subscribe-service:
container_name: subscribe-service
build:
context: './subscribe'
environment:
- ACTIVE_MQ_ENDPOINT=http://activemq:1883
- ACTIVE_MQ_USERNAME=admin
- ACTIVE_MQ_PASWORD=admin
- ACTIVE_MQ_TOPIC=test
volumes:
- ./subscribe:/app
- /app/node_modules
networks:
- microservice
depends_on:
- activemq
activemq:
image: rmohr/activemq
container_name: activemq
networks:
- microservice
ports:
- "8161:8161"
- "1883:1883"
networks:
microservice: