-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 995 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 995 Bytes
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
services:
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: tron-payments-db
restart: unless-stopped
environment:
POSTGRES_DB: tron_payments
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
# Substreams SQL Sink
sink:
build:
context: .
dockerfile: Dockerfile.sink
container_name: tron-payments-sink
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DSN: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/tron_payments?sslmode=disable
SUBSTREAMS_API_TOKEN: ${SUBSTREAMS_API_TOKEN}
SUBSTREAMS_ENDPOINTS_CONFIG_TRON: mainnet.tron.streamingfast.io:443
volumes:
postgres_data: