Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/infra/cap/docker-compose.node1.yml
T

47 lines
1.2 KiB
YAML

# Self-hosted Cap Standalone for staging/node1.
#
# node1 runs this as a plain docker-compose stack behind the existing
# Coolify Traefik proxy. The Cap container joins the external coolify network
# as cap-staging; the host port is kept on localhost for direct diagnostics.
name: cap
networks:
cap-net:
name: cap-net
coolify:
external: true
volumes:
cap-valkey-data:
name: cap-valkey-data
services:
cap:
image: ${CAP_IMAGE:-tiago2/cap:3.1.5@sha256:97455d85b5517172397c7053837d377c72ded6250777928d5435c3eab2f58779}
restart: unless-stopped
networks:
cap-net:
coolify:
aliases:
- cap-staging
env_file: [.env]
ports:
- "127.0.0.1:7300:3000"
depends_on:
valkey:
condition: service_healthy
valkey:
image: valkey/valkey:9-alpine@sha256:ee91f7a174ac4d6a6b0685b3a60e321f0a9dbbb691f9b0e285be2ba1d1be8328
restart: unless-stopped
networks: [cap-net]
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