- Rename Go module switchboard-core → armature (155+ files) - Rename Docker image → gobha/armature - Rename K8s resources, secrets, deployments - Rename Prometheus metrics switchboard_* → armature_* - Rename env vars SWITCHBOARD_ADMIN_* → ARMATURE_ADMIN_* - Rename DB names switchboard_core* → armature* - Update all frontend branding, notification templates, docs - Update CI scripts, e2e tests, Keycloak realm, nginx conf - Rename scripts/switchboard-ca.sh → scripts/armature-ca.sh - Rename k8s/switchboard.yaml → k8s/armature.yaml - Rename chart alerting/dashboard files - Fix: DockerHub push uses env: binding for secret injection - Helm chart updated (name, labels, template functions, dashboard, alerting) - Replace favicon/icon assets with Armature brand No functional changes. Pure mechanical rename + CI fix. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
# docker-compose.yml — Local development (SQLite)
|
|
#
|
|
# Single container: Go backend + nginx frontend.
|
|
# No Postgres, no sidecar, no PVC — just a mounted data directory.
|
|
#
|
|
# Usage:
|
|
# docker compose up --build
|
|
# open http://localhost:3000
|
|
#
|
|
# Data persists in the `sb_data` named volume between restarts.
|
|
# To reset: docker compose down -v
|
|
#
|
|
# For Postgres / multi-replica / k8s deployment see k8s/ and Dockerfile.
|
|
|
|
services:
|
|
armature:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: armature
|
|
environment:
|
|
PORT: "8080"
|
|
BASE_PATH: ""
|
|
DB_DRIVER: sqlite
|
|
DATABASE_URL: /data/armature.db
|
|
JWT_SECRET: ${JWT_SECRET:-change-me-for-production}
|
|
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-change-me-for-production}
|
|
ARMATURE_ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
|
|
ARMATURE_ADMIN_PASSWORD: ${ADMIN_PASSWORD:-admin}
|
|
STORAGE_BACKEND: pvc
|
|
STORAGE_PATH: /data/storage
|
|
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-http://localhost:3000}
|
|
EXT_ALLOW_PRIVATE_IPS: ${EXT_ALLOW_PRIVATE_IPS:-true}
|
|
LOG_FORMAT: ${LOG_FORMAT:-text}
|
|
LOG_LEVEL: ${LOG_LEVEL:-info}
|
|
BUNDLED_PACKAGES: ${BUNDLED_PACKAGES:-}
|
|
# Dev seed users — ignored if ENVIRONMENT=production
|
|
SEED_USERS: ${SEED_USERS:-alice:password123:user,bob:password456:user,charlie:password789:user}
|
|
volumes:
|
|
- sb_data:/data
|
|
ports:
|
|
- "3000:80"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
sb_data:
|