-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (63 loc) · 1.69 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
60
61
62
63
64
65
66
services:
db:
image: postgres:14
container_name: db_container
restart: always
user: postgres
environment:
POSTGRES_PASSWORD: password
network_mode: host
expose:
- 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 10s
retries: 100
ledger:
build:
context: .
dockerfile: docker/ledger.Dockerfile
container_name: ledger_container
entrypoint: ["/bin/sh", "-c", "./scripts/ledger_start.sh"]
network_mode: host
expose:
- 1317
- 26657
healthcheck:
test: ["CMD-SHELL", "curl -f http://127.0.0.1:26657 || exit 1"]
interval: 1s
timeout: 10s
retries: 100
indexer:
build:
context: .
dockerfile: docker/indexer.Dockerfile
container_name: indexer_container
environment:
DATABASE_URL: postgres://postgres:password@localhost:5432/indexer
SHADOW_DATABASE_URL: postgres://postgres:password@localhost:5432/indexer_shadow
ROOT_DATABASE_URL: postgres://postgres:password@localhost:5432/postgres
REGEN_API: http://localhost:1317
REGEN_RPC: http://localhost:26657
entrypoint: ["/bin/sh", "-c", "./docker/scripts/indexer_start.sh"]
network_mode: host
depends_on:
db:
condition: service_healthy
ledger:
condition: service_healthy
tester:
build:
context: .
dockerfile: docker/tester.Dockerfile
container_name: tester_container
entrypoint: ["/bin/sh", "-c", "./scripts/tester_start.sh"]
network_mode: host
depends_on:
db:
condition: service_healthy
ledger:
condition: service_healthy
indexer:
condition: service_started