-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.28 KB
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
41
42
43
44
45
46
47
48
49
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: polar
POSTGRES_PASSWORD: polar
POSTGRES_DB: polar
volumes:
- polar-data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U polar"]
interval: 5s
timeout: 5s
retries: 5
polar-flow-server:
build: .
depends_on:
postgres:
condition: service_healthy
env_file:
- .env
environment:
DATABASE_URL: postgresql+asyncpg://polar:polar@postgres:5432/polar
DEPLOYMENT_MODE: self_hosted
SYNC_ON_STARTUP: "false"
SYNC_INTERVAL_HOURS: 1
LOG_LEVEL: DEBUG
API_KEY: pfs_test_key_for_development_only
volumes:
- ~/.polar-flow:/root/.polar-flow
- ./src:/app/src # Mount source for hot reload
- ./alembic:/app/alembic # Mount alembic for migrations
- ./alembic.ini:/app/alembic.ini # Mount alembic config
command: uv run uvicorn polar_flow_server.app:app --host 0.0.0.0 --port 8000 --reload
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:
polar-data: