-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
66 lines (61 loc) · 2.16 KB
/
docker-compose.prod.yml
File metadata and controls
66 lines (61 loc) · 2.16 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Tempulse Production Stack
# Images are built by GitHub Actions and pushed to ghcr.io.
# Usage: docker compose -f docker-compose.prod.yml up -d
services:
# ─── PostgreSQL ──────────────────────────────────────────────
postgres:
image: postgres:16-alpine
container_name: tempulse-db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-tempulse}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB:-tempulse}
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-tempulse}"]
interval: 5s
timeout: 5s
retries: 5
networks:
- tempulse
# ─── Indexer (fin) ───────────────────────────────────────────
indexer:
image: ghcr.io/tempulsexyz/tempulse:latest
container_name: tempulse-indexer
restart: unless-stopped
command: ["tempulse-fin"]
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgres://${POSTGRES_USER:-tempulse}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-tempulse}
RPC_URL: ${RPC_URL}
START_BLOCK: ${START_BLOCK:-0}
BATCH_SIZE: ${BATCH_SIZE:-100}
RUST_LOG: ${RUST_LOG:-info}
networks:
- tempulse
# ─── API Server ──────────────────────────────────────────────
api:
image: ghcr.io/tempulsexyz/tempulse:latest
container_name: tempulse-api
restart: unless-stopped
command: ["tempulse-api"]
depends_on:
postgres:
condition: service_healthy
ports:
- "${API_PORT:-3001}:${API_PORT:-3001}"
environment:
DATABASE_URL: postgres://${POSTGRES_USER:-tempulse}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-tempulse}
API_PORT: ${API_PORT:-3001}
RUST_LOG: ${RUST_LOG:-info}
networks:
- tempulse
networks:
tempulse:
driver: bridge
volumes:
pgdata: