44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
|
|
# Local development: Postgres + Redis only (run web / collab / MCP on the host).
|
||
|
|
# From repository root:
|
||
|
|
# docker compose -f docker/docker-compose.dev.yml --env-file .env up -d
|
||
|
|
#
|
||
|
|
# Use DATABASE_URL / REDIS_URL pointing at localhost and published ports below.
|
||
|
|
|
||
|
|
services:
|
||
|
|
postgres:
|
||
|
|
image: postgres:16-alpine
|
||
|
|
restart: unless-stopped
|
||
|
|
environment:
|
||
|
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
||
|
|
POSTGRES_DB: ${POSTGRES_DB:-tasks}
|
||
|
|
volumes:
|
||
|
|
- postgres_data:/var/lib/postgresql/data
|
||
|
|
ports:
|
||
|
|
- "${POSTGRES_PORT:-5432}:5432"
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD-SHELL", "pg_isready -U \"$$POSTGRES_USER\" -d \"$$POSTGRES_DB\""]
|
||
|
|
interval: 5s
|
||
|
|
timeout: 5s
|
||
|
|
retries: 10
|
||
|
|
start_period: 10s
|
||
|
|
|
||
|
|
redis:
|
||
|
|
image: redis:7-alpine
|
||
|
|
restart: unless-stopped
|
||
|
|
command: ["redis-server", "--appendonly", "yes"]
|
||
|
|
volumes:
|
||
|
|
- redis_data:/data
|
||
|
|
ports:
|
||
|
|
- "${REDIS_PORT:-6379}:6379"
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "redis-cli", "ping"]
|
||
|
|
interval: 5s
|
||
|
|
timeout: 3s
|
||
|
|
retries: 10
|
||
|
|
start_period: 5s
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
postgres_data:
|
||
|
|
redis_data:
|