-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
97 lines (91 loc) · 2.33 KB
/
docker-compose.prod.yml
File metadata and controls
97 lines (91 loc) · 2.33 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
###################################
#
# task start-all-local
#
###################################
# docker volume rm $(docker volume ls -q -f "dangling=true")
services:
# ipfs:
# image: ipfs/kubo:v0.37.0
# container_name: ipfs
# network_mode: host
# ports:
# - "4001:4001"
# - "4001:4001/udp"
# - "8080:8080"
# - "5001:5001"
# stop_signal: SIGKILL
# command: daemon
# restart: unless-stopped
ponder-db:
image: postgres:17
container_name: ponder-db
environment:
POSTGRES_DB: ponder
POSTGRES_USER: ponder
POSTGRES_PASSWORD: ponder
volumes:
- ponder-db-data:/var/lib/postgresql/data
ports:
- '6432:5432'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -d ponder -U ponder']
interval: 1s
timeout: 3s
retries: 5
restart: unless-stopped
ponder:
image: node:22-alpine
container_name: ponder
working_dir: /app/indexer
network_mode: host
volumes:
- .:/app
command: sh -c "npm install -g pnpm && CI=true pnpm install --ignore-scripts && pnpm run db:migrate && pnpm run start --schema v0.9.10 --views-schema trust-graph"
depends_on:
- ponder-db
ports:
- '65421:65421'
healthcheck:
test:
[
'CMD-SHELL',
'wget -q --spider http://localhost:65421/health || exit 1',
]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
environment:
NODE_ENV: production
DATABASE_URL: postgresql://ponder:ponder@localhost:6432/ponder
restart: unless-stopped
ponder-server:
image: node:22-alpine
container_name: ponder-server
working_dir: /app/indexer
network_mode: host
volumes:
- .:/app
command: sh -c "npm install -g pnpm && CI=true pnpm install --ignore-scripts && pnpm run serve --schema trust-graph"
# depends_on:
# ponder:
# condition: service_healthy
ports:
- '65422:65422'
healthcheck:
test:
[
'CMD-SHELL',
'wget -q --spider http://localhost:65422/health || exit 1',
]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
environment:
NODE_ENV: production
DATABASE_URL: postgresql://ponder:ponder@localhost:6432/ponder
restart: unless-stopped
volumes:
ponder-db-data: