og-edopro-server-ts/docker-compose.yaml
Diango Gavidia 62b7e697b8
build(compose): add Valkey service to the dev docker-compose (#257)
The server's single-use ticket store reads via GETDEL on a Redis-compatible
instance; until now only the prod compose had one. Mirrors prod (valkey 9.0,
appendonly, ping healthcheck); port 6379 exposed so a locally-run server can
connect through REDIS_URI=redis://localhost:6379.
2026-06-06 20:04:45 -04:00

39 lines
966 B
YAML

services:
postgres:
image: postgres:16.4-alpine
container_name: evolution-postgres
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U evolution -d evolution" ]
interval: 10s
timeout: 5s
retries: 5
valkey:
image: valkey/valkey:9.0-alpine
container_name: evolution-valkey
ports:
- "6379:6379"
volumes:
- valkey_data:/data
restart: unless-stopped
healthcheck:
test: [ "CMD", "valkey-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
command: valkey-server --appendonly yes
volumes:
postgres_data:
valkey_data: