-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
48 lines (48 loc) · 1.42 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
41
42
43
44
45
46
47
48
version: "3.9"
services:
staking-api-service:
image: babylonlabs-io/staking-api-service:latest
container_name: staking-api-service
ports:
- "80:8090"
environment:
- CONFIG=/home/staking-api-service/config.yml
volumes:
- ./config/global-params.json:/home/staking-api-service/global-params.json:Z
- ./config/finality-providers.json:/home/staking-api-service/finality-providers.json:Z
- ./config/config-docker.yml:/home/staking-api-service/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" ]
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"