-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 856 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 856 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
version: '3.8'
services:
api:
build: .
ports:
- "5001:5001"
environment:
- NODE_ENV=production
- GITHUB_TOKEN=${GITHUB_TOKEN}
- ELASTIC_APM_SECRET_TOKEN=${ELASTIC_APM_SECRET_TOKEN}
volumes:
- ./coordination:/app/coordination
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5001/api/health"]
interval: 30s
timeout: 3s
retries: 3
restart: unless-stopped
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_DB=commit_relay
- POSTGRES_USER=commit_relay
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U commit_relay"]
interval: 10s
timeout: 3s
retries: 3
restart: unless-stopped
volumes:
postgres_data: