-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 900 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (38 loc) · 900 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
40
services:
app:
image: cordlesswool/highcoo:latest
profiles: [prod]
restart: unless-stopped
ports:
- '3001:3001'
environment:
DATABASE_URL: postgresql://highcoo:${POSTGRES_PASSWORD}@db:5432/highcoo
BODY_SIZE_LIMIT: ${BODY_SIZE_LIMIT:-Infinity}
depends_on:
db:
condition: service_healthy
volumes:
- uploads:/uploads
db:
image: postgres:18-alpine
restart: unless-stopped
environment:
POSTGRES_USER: highcoo
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-highcoo}
POSTGRES_DB: highcoo
ports:
- '5432:5432'
healthcheck:
test:
[
'CMD-SHELL',
'pg_isready -U highcoo -d highcoo && psql -U highcoo -d highcoo -c "SELECT 1"'
]
interval: 5s
timeout: 3s
retries: 5
volumes:
- pgdata:/var/lib/postgresql
volumes:
pgdata:
uploads: