-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (37 loc) · 1.05 KB
/
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
version: '3'
services:
go-sender:
build: .
command: go run main.go
environment:
- SENDER_SENDGRID_KEY=************REPLACEME!!!
- SENDER_SPARKPOST_KEY=************REPLACEME!!!!
- SENDER_RABBIT_USERNAME=guest
- SENDER_RABBIT_PASSWORD=guest
- SENDER_RABBIT_ADDR=rabbitmq
- SENDER_RABBIT_PORT=5672
depends_on:
- rabbitmq
rabbitmq:
image: "heidiks/rabbitmq-delayed-message-exchange:3.6-management"
hostname: "rabbitmq"
environment:
RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
RABBITMQ_DEFAULT_USER: "guest"
RABBITMQ_DEFAULT_PASS: "guest"
RABBITMQ_DEFAULT_VHOST: "/"
ports:
- "15672:15672"
- "5672:5672"
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 5s
timeout: 15s
retries: 1
volumes:
- ./scripts/rabbitmq.config:/etc/rabbitmq/rabbitmq.config
- ./scripts/definitions.json:/etc/rabbitmq/definitions.json:ro
- "rabbitdata:/var/lib/rabbitmq:rw"
volumes:
rabbitdata:
driver: local