-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
54 lines (50 loc) · 1.35 KB
/
docker-compose.prod.yml
File metadata and controls
54 lines (50 loc) · 1.35 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
services:
app:
image: ghcr.io/rector-labs/pnode-pulse:latest
container_name: pnode-pulse-app
restart: unless-stopped
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/pnode_pulse
- NODE_ENV=production
depends_on:
postgres:
condition: service_healthy
networks:
- pnode-pulse
collector:
image: ghcr.io/rector-labs/pnode-pulse:latest
container_name: pnode-pulse-collector
restart: unless-stopped
command: ["node", "-e", "require('./scripts/start-collector.js')"]
environment:
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/pnode_pulse
- NODE_ENV=production
depends_on:
postgres:
condition: service_healthy
networks:
- pnode-pulse
postgres:
image: timescale/timescaledb:latest-pg15
container_name: pnode-pulse-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: pnode_pulse
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
- pnode-pulse
networks:
pnode-pulse:
name: pnode-pulse
volumes:
postgres_data: