-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.39 KB
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
services:
postgres:
image: postgres:16
environment:
POSTGRES_DB: solarix
POSTGRES_USER: solarix
POSTGRES_PASSWORD: solarix
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U solarix -d solarix"]
interval: 5s
timeout: 5s
retries: 5
solarix:
build: .
depends_on:
postgres:
condition: service_healthy
env_file:
- path: .env
required: false
environment:
DATABASE_URL: postgres://solarix:solarix@postgres:5432/solarix
SOLANA_RPC_URL: "${SOLANA_RPC_URL:-https://api.devnet.solana.com}"
SOLARIX_API_HOST: "0.0.0.0"
SOLARIX_API_PORT: "${SOLARIX_API_PORT:-3000}"
SOLARIX_RPC_RPS: "${SOLARIX_RPC_RPS:-10}"
SOLARIX_LOG_FORMAT: "${SOLARIX_LOG_FORMAT:-json}"
SOLARIX_LOG_LEVEL: "${SOLARIX_LOG_LEVEL:-info}"
# Optional passthrough — only set if the host has them defined.
# `KEY:` (no value) means "use host env if present, else unset".
SOLANA_WS_URL:
SOLARIX_START_SLOT:
SOLARIX_END_SLOT:
SOLARIX_BACKFILL_CHUNK_SIZE:
SOLARIX_INDEX_FAILED_TXS:
ports:
- "3000:3000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
postgres_data: