-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
35 lines (35 loc) · 981 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
version: "3.9"
services:
staking-expiry-checker:
image: babylonchain/staking-expiry-checker:latest
container_name: staking-expiry-checker
environment:
- CONFIG=/home/staking-expiry-checker/config.yml
depends_on:
- mongodb
- rabbitmq
volumes:
- ./config/config-docker.yml:/home/staking-expiry-checker/config.yml:Z
mongodb:
image: mongo:latest
container_name: mongodb
hostname: mongodb
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- ./bin/init-mongo.sh:/init-mongo.sh
entrypoint: [ "/init-mongo.sh" ]
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672" # AMQP protocol port
- "15672:15672" # Management UI port
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
volumes:
- "./rabbitmq_data:/var/lib/rabbitmq"