-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (57 loc) · 1.67 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
49
50
51
52
53
54
55
56
57
58
59
version: "3.9"
services:
xchains-api:
image: scalarorg/xchains-api:latest
container_name: xchains-api
ports:
- "8090:8090"
environment:
- CONFIG=/home/xchains-api/config.yml
volumes:
- ./config/global-params.json:/home/xchains-api/global-params.json:Z
- ./config/finality-providers.json:/home/xchains-api/finality-providers.json:Z
- ./config/config-docker.yml:/home/xchains-api/config.yml:Z
- ./bin/wait-for-service.sh:/bin/wait-for-service.sh
entrypoint: "/bin/wait-for-service.sh rabbitmq:5672 -t 60 -- /bin/entrypoint.sh"
depends_on:
- postgresdb
- mongodb
- rabbitmq
postgresdb:
restart: "unless-stopped"
image: postgres:15-alpine
container_name: postgresdb
stop_grace_period: 1m
# volumes:
# - ./postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-postgres}
ports:
- 5432:5432/tcp
healthcheck:
test: ["CMD", "nc", "-z", "-v", "localhost", "5432"]
interval: 5s
timeout: 5s
retries: 5
mongodb:
image: mongo:latest
container_name: mongodb
hostname: mongodb
ports:
- "27017:27017"
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"