hermes-kanban-miniapp/docker-compose.yml

49 lines
1.6 KiB
YAML
Raw Normal View History

# ─────────────────────────────────────────────────────────────
# docker-compose.yml — Hermes Kanban MiniApp deployment
# Services: bridge (Express API) + frontend (Nginx SPA)
# ─────────────────────────────────────────────────────────────
2026-07-09 17:19:33 +03:00
services:
# ── Bridge API ───────────────────────────────────────────
bridge:
build:
context: .
dockerfile: packages/bridge/Dockerfile
2026-07-09 17:19:33 +03:00
ports:
- "3456:3456"
env_file: .env
environment:
# Override bind to 0.0.0.0 so container is reachable
BRIDGE_HOST: "0.0.0.0"
BRIDGE_PORT: "3456"
2026-07-09 17:19:33 +03:00
volumes:
# Mount hermes profile directory (read-only)
- ${HERMES_HOME:-/home/kisskin/.hermes}:/root/.hermes:ro
networks:
- kanban
2026-07-09 17:19:33 +03:00
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3456/bridge/v1/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
2026-07-09 17:19:33 +03:00
# ── Frontend (Nginx SPA) ─────────────────────────────────
2026-07-09 17:19:33 +03:00
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
2026-07-09 17:19:33 +03:00
ports:
- "8080:80"
2026-07-09 17:19:33 +03:00
depends_on:
bridge:
condition: service_healthy
networks:
- kanban
restart: unless-stopped
networks:
kanban:
driver: bridge