mirror of
https://github.com/diangogav/EDOpro-server-ts
synced 2026-08-24 00:23:05 -04:00
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.
39 lines
966 B
YAML
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:
|