Add declarative infrastructure for self-hosted DevOps stack on black: Reconciliation service (devops-stack.sh): - Detects Docker installation and daemon status - Auto-generates secrets on first deployment - Syncs config from repo to remote - Manages container lifecycle - Staged deployment (Forgejo first, Woodpecker after OAuth) Docker configuration: - Forgejo with nginx proxy, postgres, runner - Woodpecker CI with Forgejo OAuth integration - Shared network for internal communication Integration: - Added to black host inventory - rectify-deploy detects forgejo/woodpecker changes - Convenience wrapper script (deploy-devops-stack.sh) Also removes deprecated service-registry (replaced by status-dashboard). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
version: '3.8'
|
|
|
|
# =============================================================================
|
|
# FEATURE FLAGS INFRASTRUCTURE
|
|
# =============================================================================
|
|
#
|
|
# Feature flag service infrastructure:
|
|
# - PostgreSQL: Flags, overrides, audit logs
|
|
#
|
|
# =============================================================================
|
|
|
|
services:
|
|
feature-flags-postgres:
|
|
image: postgres:16-alpine
|
|
container_name: lilith-feature-flags-postgres
|
|
restart: unless-stopped
|
|
ports:
|
|
- '${FEATURE_FLAGS_POSTGRES_PORT:-5436}:5432'
|
|
environment:
|
|
POSTGRES_USER: ${FEATURE_FLAGS_POSTGRES_USER:-lilith}
|
|
POSTGRES_PASSWORD: ${FEATURE_FLAGS_POSTGRES_PASSWORD:-flags_dev_password}
|
|
POSTGRES_DB: ${FEATURE_FLAGS_POSTGRES_DB:-lilith_feature_flags}
|
|
volumes:
|
|
- feature-flags-postgres-data:/var/lib/postgresql/data
|
|
- ./init.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U ${FEATURE_FLAGS_POSTGRES_USER:-lilith}']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- feature-flags-network
|
|
|
|
volumes:
|
|
feature-flags-postgres-data:
|
|
|
|
networks:
|
|
feature-flags-network:
|
|
driver: bridge
|