-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
29 lines (29 loc) · 800 Bytes
/
Copy pathcompose.yaml
File metadata and controls
29 lines (29 loc) · 800 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
services:
db:
image: postgres:17-alpine
environment:
POSTGRES_DB: codemate
POSTGRES_USER: codemate
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U codemate']
interval: 5s
retries: 10
app:
build: .
ports: ['3001:3001']
environment:
NODE_ENV: production
DATABASE_URL: postgres://codemate:${POSTGRES_PASSWORD}@db:5432/codemate
FRONTEND_URL: ${FRONTEND_URL:?Set an HTTPS frontend URL}
SESSION_SECRET: ${SESSION_SECRET:?Set SESSION_SECRET}
ENGINE_WORKERS: 2
depends_on:
db:
condition: service_healthy
init: true
restart: unless-stopped
volumes:
postgres-data: