-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.activemq.yml
47 lines (43 loc) · 1.43 KB
/
docker-compose.activemq.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
# docker-compose -f docker-compose.activemq.yml up --build -d
# https://hub.docker.com/r/rmohr/activemq
version: "3.4"
services:
activemq:
image: rmohr/activemq
hostname: activemq
container_name: activemq
ports:
- "61616:61616"
- "8161:8161"
environment:
ACTIVEMQ_OPTS: "-Xms2g -Xmx3g"
volumes:
- ./.docker/activemq/conf/activemq.xml:/conf/activemq.xml
sample-activemq-producer:
build:
context: .
dockerfile: ./src/Samples/Sample.ActiveMQ.Producer/Dockerfile
container_name: Sample.ActiveMQ.Producer
volumes:
- ./.docker/activemq/Sample.ActiveMQ.Producer/Logs/:/app/Logs/
environment:
ACTIVEMQ_USERNAME: admin
ACTIVEMQ_PASSWORD: admin
ACTIVEMQ_URI: tcp://activemq:61616
ACTIVEMQ_TOPIC: test-topic
links:
- activemq
sample-activemq-consumer:
build:
context: .
dockerfile: ./src/Samples/Sample.ActiveMQ.Consumer/Dockerfile
container_name: Sample.ActiveMQ.Consumer
volumes:
- ./.docker/activemq/Sample.ActiveMQ.Consumer/Logs/:/app/Logs/
environment:
ACTIVEMQ_USERNAME: admin
ACTIVEMQ_PASSWORD: admin
ACTIVEMQ_URI: tcp://activemq:61616
ACTIVEMQ_TOPIC: test-topic
links:
- activemq