docker-compose.yml now runs from prebuilt images (civ-capi/civ-adash/ civ-prober) instead of building from source, mounts this host's own rxprod-compose/control-api.yaml and capi-db/ (both local, gitignored except control-api.yaml itself which is now committed), and moves control-api off port 8080 onto 8081. rxprod-compose/sources/ carries local copies of the example configs (admin-dashboard/control-api/prober/validator-agent) plus .env.example, moved here from rxprod-compose/.env.example, for reference alongside this specific deployment's docker-compose.yml. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
name: cloud-ip-validator
|
|
|
|
networks:
|
|
backend:
|
|
name: cloud-ip-validator
|
|
|
|
volumes:
|
|
control-api-db:
|
|
name: cloud-ip-validator-db
|
|
|
|
services:
|
|
control-api:
|
|
image: civ-capi
|
|
platform: linux/amd64
|
|
restart: unless-stopped
|
|
networks: [backend]
|
|
ports:
|
|
- "8081:8081"
|
|
volumes:
|
|
- /opt/lvraid/claude/cloud_ip_validator/rxprod-compose/control-api.yaml:/etc/cloud-ip-validator/control-api.yaml:ro
|
|
- /opt/lvraid/claude/cloud_ip_validator/rxprod-compose/capi-db:/var/lib/cloud-ip-validator
|
|
environment:
|
|
OS_AUTH_URL: "${OS_AUTH_URL}"
|
|
OS_PROJECT_ID: "${OS_PROJECT_ID}"
|
|
OS_REGION_NAME: "${OS_REGION_NAME}"
|
|
OS_INTERFACE: "${OS_INTERFACE:-}"
|
|
OS_TOKEN: "${OS_TOKEN:-}"
|
|
OS_USERNAME: "${OS_USERNAME:-}"
|
|
OS_USER_DOMAIN_NAME: "${OS_USER_DOMAIN_NAME:-}"
|
|
OS_PASSWORD: "${OS_PASSWORD:-}"
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:8081/healthz"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
start_period: 5s
|
|
|
|
admin-dashboard:
|
|
image: civ-adash
|
|
platform: linux/amd64
|
|
restart: unless-stopped
|
|
networks: [backend]
|
|
ports:
|
|
- "8090:8090"
|
|
environment:
|
|
ADMIN_DASHBOARD_CONTROL_API_URL: http://control-api:8081
|
|
depends_on:
|
|
control-api:
|
|
condition: service_healthy
|
|
|
|
prober:
|
|
image: civ-prober
|
|
platform: linux/amd64
|
|
restart: unless-stopped
|
|
networks: [backend]
|
|
cap_add: [NET_RAW]
|
|
environment:
|
|
PROBER_SITE_ID: "${PROBER_SITE_ID}"
|
|
PROBER_CONTROL_API_URL: http://control-api:8081
|
|
depends_on:
|
|
control-api:
|
|
condition: service_healthy
|