Files
mcpctl/deploy/docker-compose.yml
2026-02-21 03:10:39 +00:00

38 lines
832 B
YAML

services:
postgres:
image: postgres:16-alpine
container_name: mcpctl-postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: mcpctl
POSTGRES_PASSWORD: mcpctl_dev
POSTGRES_DB: mcpctl
volumes:
- mcpctl-pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mcpctl"]
interval: 5s
timeout: 5s
retries: 5
postgres-test:
image: postgres:16-alpine
container_name: mcpctl-postgres-test
ports:
- "5433:5432"
environment:
POSTGRES_USER: mcpctl
POSTGRES_PASSWORD: mcpctl_test
POSTGRES_DB: mcpctl_test
tmpfs:
- /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mcpctl"]
interval: 5s
timeout: 5s
retries: 5
volumes:
mcpctl-pgdata: