-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (54 loc) · 1.12 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
version: '3.7'
services:
api:
tty: true
build: .
volumes:
- ./conf.yaml:/app/conf.yaml
ports:
- "8080:8080"
environment:
- DB_USER=postgres
- DB_PASS=postgres
- NODE_IP=
- NODE_PORT=9922
- NODE_API_KEY=
- DB_IP=db
- POSTGRES_DATABASE=indexer
restart: always
depends_on:
- db
- tsagaglalal
tsagaglalal:
build: .
command: python3 blockparse.py
volumes:
- ./conf.yaml:/app/conf.yaml
environment:
- BLOCK_TIME=4
- NODE_IP=
- NODE_PORT=9922
- NODE_API_KEY=
- DB_USER=postgres
- DB_PASS=postgres
- DB_IP=db
- POSTGRES_DATABASE=indexer
restart: always
depends_on:
- db
db:
image: postgres:14.2-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=indexer
ports:
- '5432:5432'
volumes:
- ./database:/var/lib/postgresql/data
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
logging:
options:
max-size: 10m
max-file: "3"