Add local Docker registry: registry:2 on :5000, build-push.sh, CI auto-deploy
- docker-compose services now pull from localhost:5000 instead of building locally - build-push.sh builds + pushes all 5 Node images to local registry - CI workflows get build-push job: test → build → push → deploy - Deploy becomes: docker compose pull && docker compose up -d - Eliminates silent git pull + stale Docker cache issues
This commit is contained in:
@@ -47,6 +47,15 @@ services:
|
||||
volumes:
|
||||
- meili_data:/meili_data
|
||||
|
||||
# --- Local Docker Registry ---
|
||||
registry:
|
||||
image: registry:2
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- registry_data:/var/lib/registry
|
||||
restart: unless-stopped
|
||||
|
||||
# --- dd0c Products ---
|
||||
# P1: LLM Cost Router (Rust — API server)
|
||||
# NOTE: Rust services are behind the "rust" profile because they take 10+ min to compile.
|
||||
@@ -105,9 +114,7 @@ services:
|
||||
|
||||
# P2: IaC Drift Detection (SaaS)
|
||||
drift:
|
||||
build:
|
||||
context: ./02-iac-drift-detection/saas
|
||||
dockerfile: Dockerfile
|
||||
image: localhost:5000/dd0c-drift:latest
|
||||
ports:
|
||||
- "3002:3000"
|
||||
environment:
|
||||
@@ -123,9 +130,7 @@ services:
|
||||
|
||||
# P3: Alert Intelligence
|
||||
alert:
|
||||
build:
|
||||
context: ./03-alert-intelligence
|
||||
dockerfile: Dockerfile
|
||||
image: localhost:5000/dd0c-alert:latest
|
||||
ports:
|
||||
- "3003:3000"
|
||||
environment:
|
||||
@@ -141,9 +146,7 @@ services:
|
||||
|
||||
# P4: Lightweight IDP / Service Catalog
|
||||
portal:
|
||||
build:
|
||||
context: ./04-lightweight-idp
|
||||
dockerfile: Dockerfile
|
||||
image: localhost:5000/dd0c-portal:latest
|
||||
ports:
|
||||
- "3004:3000"
|
||||
environment:
|
||||
@@ -161,9 +164,7 @@ services:
|
||||
|
||||
# P5: AWS Cost Anomaly Detection
|
||||
cost:
|
||||
build:
|
||||
context: ./05-aws-cost-anomaly
|
||||
dockerfile: Dockerfile
|
||||
image: localhost:5000/dd0c-cost:latest
|
||||
ports:
|
||||
- "3007:3000"
|
||||
environment:
|
||||
@@ -180,9 +181,7 @@ services:
|
||||
|
||||
# P6: Runbook Automation (SaaS)
|
||||
run:
|
||||
build:
|
||||
context: ./06-runbook-automation/saas
|
||||
dockerfile: Dockerfile
|
||||
image: localhost:5000/dd0c-run:latest
|
||||
ports:
|
||||
- "3006:3000"
|
||||
environment:
|
||||
@@ -199,3 +198,4 @@ services:
|
||||
volumes:
|
||||
pg_data:
|
||||
meili_data:
|
||||
registry_data:
|
||||
|
||||
Reference in New Issue
Block a user