-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 802 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 802 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: agentic_runner
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 10
volumes:
- pg_data:/var/lib/postgresql/data
api:
build: .
depends_on:
postgres:
condition: service_healthy
environment:
AGENTIC_RUNNER_DATABASE_URL: postgresql+psycopg://postgres:postgres@postgres:5432/agentic_runner
AGENTIC_RUNNER_PROVIDER: fake
ports:
- "8000:8000"
command:
- sh
- -c
- "alembic upgrade head && uvicorn agentic_runner.api:app --host 0.0.0.0 --port 8000"
volumes:
pg_data: {}