control-api was the only component deployable via a bare Dockerfile alone (no entrypoint/template, no default mountable config), and there was no compose file wiring the four services' network, healthcheck ordering, or DB volume together. Adds a base docker-compose.yml plus dev (override, auto-loaded) and prod overlays, split by Compose profiles matching the real deployment topology (control-plane/dashboard/prober/validator), a ready-to-copy mock config for control-api so `docker compose up` works out of the box, and the repo's first .gitignore for the local env/config copies developers create from the committed examples. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NeVbMVEiE7XQAkBd7HQgj6
20 lines
825 B
Bash
20 lines
825 B
Bash
# Copy to .env and edit if needed — defaults below work out of the box
|
|
# with control-api/control-api.docker.example.yaml (openstack.mode: mock,
|
|
# no OpenStack credentials needed).
|
|
#
|
|
# cp .env.example .env
|
|
# cp control-api/control-api.docker.example.yaml control-api/control-api.docker.yaml
|
|
# docker compose up -d --build
|
|
|
|
COMPOSE_PROFILES=control-plane,dashboard,prober,validator
|
|
|
|
# --- prober (must match a site_id in the mounted control-api config) ---
|
|
PROBER_SITE_ID=site-1
|
|
|
|
# --- validator-agent (must match a validator_id in the mounted control-api config) ---
|
|
VALIDATOR_AGENT_VALIDATOR_ID=validator_01
|
|
|
|
# ADMIN_DASHBOARD_CONTROL_API_URL / PROBER_CONTROL_API_URL /
|
|
# VALIDATOR_AGENT_CONTROL_API_URL default to http://control-api:8080 in
|
|
# docker-compose.yml (same Docker network) — only set here to override.
|