Files
2026-07-08 16:15:37 +02:00

36 lines
952 B
YAML

# Self-hosted Cap Standalone for HiveGrid production.
#
# Intended as a Coolify Docker Compose service on hivegrid-prod-worker
# (worker/services VM). Coolify/Traefik terminates TLS for captcha.hivegrid.de.
name: hivegrid-prod-cap
volumes:
cap-valkey-data:
services:
cap:
image: ${CAP_IMAGE:-tiago2/cap:3.1.5}
restart: unless-stopped
env_file: [.env]
expose:
- "3000"
environment:
# Coolify generates the Traefik route for captcha.hivegrid.de from this.
- SERVICE_FQDN_CAP_3000=${SERVICE_FQDN_CAP_3000:-captcha.hivegrid.de}
depends_on:
valkey:
condition: service_healthy
valkey:
image: valkey/valkey:9-alpine
restart: unless-stopped
volumes:
- cap-valkey-data:/data
command: valkey-server --save 60 1 --loglevel warning --maxmemory-policy noeviction
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10