-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
34 lines (32 loc) · 950 Bytes
/
docker-compose.dev.yml
File metadata and controls
34 lines (32 loc) · 950 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
# Agent Control Server - Local Development Docker Compose
#
# This file is used for local development with `make server-run`.
# It only starts PostgreSQL, allowing you to run the server locally with uvicorn.
#
# Usage:
# docker compose -f docker-compose.dev.yml up -d
# cd server && uvicorn main:app --reload
# OR
# make server-run (handles this automatically)
#
# For running both Postgres + Server in Docker, use docker-compose.yml instead.
services:
postgres:
image: postgres:16-alpine
container_name: agent_control_postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: agent_control
POSTGRES_USER: agent_control
POSTGRES_PASSWORD: agent_control
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agent_control -d agent_control"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
volumes:
pgdata: