Files
operating-room-monitor-server/docker-compose.dev.yml

22 lines
621 B
YAML
Raw Normal View History

# Local development: PostgreSQL only. Run the API on the host with ./start.sh or `uv run`.
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-operation_room}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- pgdata_dev:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""]
interval: 3s
timeout: 5s
retries: 20
start_period: 5s
volumes:
pgdata_dev: