-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
35 lines (35 loc) · 1022 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:
babylon-staking-indexer:
image: babylonlabs-io/babylon-staking-indexer:latest
container_name: babylon-staking-indexer
environment:
- CONFIG=/home/babylon-staking-indexer/config.yml
depends_on:
- indexer-mongodb
- rabbitmq
volumes:
- ./config/config-docker.yml:/home/babylon-staking-indexer/config.yml:Z
indexer-mongodb:
image: mongo:latest
container_name: indexer-mongodb
hostname: indexer-mongodb
ports:
- "27019: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: user
RABBITMQ_DEFAULT_PASS: password
volumes:
- "./rabbitmq_data:/var/lib/rabbitmq"