-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
39 lines (36 loc) · 977 Bytes
/
docker-compose.prod.yml
File metadata and controls
39 lines (36 loc) · 977 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
# Production Docker Compose
# Just run: docker-compose -f docker-compose.prod.yml up -d
# Then visit: http://localhost:8000/admin to configure
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: polar
POSTGRES_PASSWORD: polar
POSTGRES_DB: polar
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U polar"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
polar-flow-server:
image: stumason/polar-flow-server:latest
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql+asyncpg://polar:polar@postgres:5432/polar
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
volumes:
postgres-data: