-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (39 loc) · 921 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
36
37
38
39
version: '3.8'
services:
db:
container_name: db
image: 'postgres:latest'
ports:
- "5432:5432"
expose:
- 5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: devdb
# for persistent volume map volume outside project folder
# volumes:
# - /home/stefan/Projects/DockerVolumes:/var/lib/postgresql/data/
networks:
- ingestor-network
ingestor:
container_name: ingestor
build: .
environment:
- PGHOST=db
- PGUSER=postgres
- PGPASSWORD=postgres
- PGPORT=5432
- PGDATABASE=devdb
- DATABASE_URL=postgres://postgres:postgres@db:5432/devdb
- RPC_URL=http://ronin.tribally.xyz
- BLOCKS_TO_INGEST=15000
- BLOCKS_CHUNK_SIZE=100
depends_on:
- db
networks:
- ingestor-network
networks:
ingestor-network:
driver: bridge
name: ingestor-network