forked from jakubkulhan/bunny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 1018 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
version: '3'
networks:
main:
services:
rabbit_node_1:
image: 'rabbitmq:3-management'
entrypoint: /opt/bunny/docker/rabbitmq/entrypoint.sh /usr/local/bin/docker-entrypoint.sh
command: rabbitmq-server
environment:
RABBITMQ_DEFAULT_USER: testuser
RABBITMQ_DEFAULT_PASS: testpassword
RABBITMQ_DEFAULT_VHOST: testvhost
RABBITMQ_ERLANG_COOKIE: bunny-test-secret
CONFIG_NAME: "${CONFIG_NAME:-rabbitmq.ssl.verify_peer}"
volumes:
- .:/opt/bunny
networks:
- main
hostname: rabbit_node_1
ports:
- "5672:5672"
- "5673:5673"
- "15672:15672"
tty: true
bunny:
build: docker/bunny
environment:
SSL_TEST: "client"
SSL_CA: "ssl/ca.pem"
SSL_CLIENT_CERT: "ssl/client.pem"
SSL_CLIENT_KEY: "ssl/client.key"
SSL_PEER_NAME: "server.rmq"
TEST_RABBITMQ_CONNECTION_URI: "amqp://testuser:testpassword@bunny_rabbit_node_1_1:5672/testvhost"
volumes:
- .:/opt/bunny
networks:
- main