-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (54 loc) · 1.4 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
services:
postgres:
image: postgres:16-alpine
command: -c 'max_connections=200'
ports:
- 5435:5432
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
PGUSER: postgres
POSTGRES_DB: masp_indexer_local
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "masp_indexer_local"]
interval: 5s
timeout: 10s
retries: 5
start_period: 80s
block-index:
image: namada-masp-block-index
build:
context: .
dockerfile: block-index/Dockerfile
environment:
COMETBFT_URL: ${COMETBFT_URL}
DATABASE_URL: postgres://postgres:password@postgres:5432/masp_indexer_local
depends_on:
postgres:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
webserver:
image: namada-masp-webserver
build:
context: .
dockerfile: webserver/Dockerfile
ports:
- 5000:5000
environment:
PORT: 5000
DATABASE_URL: postgres://postgres:password@postgres:5432/masp_indexer_local
depends_on:
- crawler
crawler:
build:
context: .
dockerfile: chain/Dockerfile
environment:
COMETBFT_URL: ${COMETBFT_URL}
DATABASE_URL: postgres://postgres:password@postgres:5432/masp_indexer_local
depends_on:
postgres:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"