-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 823 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 823 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
38
39
version: "3.8"
services:
postgres:
image: postgres:16
ports:
- "5433:5432"
environment:
POSTGRES_USER: ruin
POSTGRES_PASSWORD: ruin
POSTGRES_DB: ruin
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ruin"]
interval: 5s
timeout: 3s
retries: 5
server:
build:
context: .
dockerfile: Dockerfile.server
ports:
- "2567:2567"
environment:
NODE_ENV: production
PORT: 2567
DATABASE_URL: postgresql://ruin:ruin@postgres:5432/ruin
JWT_SECRET: change-me-in-production-deployments
LOG_LEVEL: info
ADMIN_PASSWORD: admin
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
volumes:
postgres-data: