feat(infra): remove Go dashboard, dashboard is now part of hub Next.js app

- Remove dashboard container from observability.yml
- Remove infra/docker/dashboard.Dockerfile
- Remove dashboard route from Traefik apps.yaml
- Mount Docker socket on hub container for /api/dashboard
- Remove dashboard build from CI/CD (docker-build-push.yml)
- Update submodule pointer to hub with Next.js dashboard rewrite

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
asepharyana
2026-07-23 07:23:12 +07:00
co-authored by Claude Opus 4.8
parent cea96fcfc2
commit aaaf5de70c
6 changed files with 5 additions and 58 deletions
+2
View File
@@ -9,6 +9,8 @@ services:
- hub
env_file:
- ../../.env
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
app-shared-net:
-22
View File
@@ -73,28 +73,6 @@ services:
volumes:
- /:/host:ro,rslave
# ── Custom Dashboard (nginx:alpine) ──
dashboard:
container_name: dashboard
image: ghcr.io/asepharyana/asepharyana-hub/dashboard:sha-5999ac1
build:
context: ../..
dockerfile: infra/docker/dashboard.Dockerfile
restart: always
networks:
app-shared-net:
aliases:
- dashboard
ports:
- '8080:8080'
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
depends_on:
jaeger:
condition: service_started
otel-collector:
condition: service_started
networks:
app-shared-net:
name: app-shared-net
-11
View File
@@ -1,11 +0,0 @@
# ── Build stage ──
FROM golang:1.24-alpine AS builder
WORKDIR /build
COPY apps/hub/dashboard/ ./
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o dashboard .
# ── Runtime (scratch — ~7MB total) ──
FROM scratch
COPY --from=builder /build/dashboard /dashboard
EXPOSE 8080
CMD ["/dashboard"]
-15
View File
@@ -20,16 +20,6 @@ http:
- common-chain@file
service: scraper-service
# ── Dashboard ──
dashboard:
rule: 'Host(`dashboard.asepharyana.my.id`) || Host(`status.asepharyana.my.id`) || Host(`dashboard.asepharyana.web.id`) || Host(`status.asepharyana.web.id`)'
entryPoints:
- websecure
tls: {}
middlewares:
- common-chain@file
service: dashboard-service
# ── Jaeger UI ──
jaeger:
rule: 'Host(`jaeger.asepharyana.my.id`) || Host(`jaeger.asepharyana.web.id`)'
@@ -51,11 +41,6 @@ http:
servers:
- url: 'http://scraper-api:4091'
dashboard-service:
loadBalancer:
servers:
- url: 'http://dashboard:8080'
jaeger-service:
loadBalancer:
servers: