-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 812 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 812 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
services:
app:
build: .
ports:
- "3001:3000"
environment:
PORT: 3000
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/lrs
GATEWAY_API_KEY: ${GATEWAY_API_KEY:?GATEWAY_API_KEY is required}
PASSWORD: ${PASSWORD:-}
DEBUG_DB_MAX_RECORDS: ${DEBUG_DB_MAX_RECORDS:-50000}
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: lrs
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d lrs"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
volumes:
postgres_data: