Files
GMW/infra/docker/docker-compose.yml
T
MythEclipseandClaude Opus 4.8 73efc716a5 fix(ci): use git-pull pattern like ZeaVis-Edu, all images from GHCR
- Replace build: blocks with image: from ghcr.io
- Simplify deploy: git clone/pull on VPS, then docker compose pull/up
- Remove SCP step entirely — nginx.conf baked into proxy image
- Rename containers to imphenbot-* to match existing VPS setup
- Fix backend port to 3000 for production

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 09:41:38 +07:00

62 lines
1.6 KiB
YAML

version: '3.8'
services:
# Nginx Reverse Proxy — handles /api and /ws routing behind Traefik
proxy:
image: ghcr.io/${OWNER:-mytheclipse}/bete-proxy:latest
container_name: imphenbot-proxy
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.imphenbot.rule=Host(`imphnen.asepharyana.my.id`)"
- "traefik.http.routers.imphenbot.entrypoints=websecure"
- "traefik.http.routers.imphenbot.tls=true"
- "traefik.http.services.imphenbot.loadbalancer.server.port=80"
depends_on:
- backend
- frontend
networks:
- app-shared-net
# Backend Service (REST API + WebSocket)
backend:
image: ghcr.io/${OWNER:-mytheclipse}/bete-backend:latest
container_name: imphenbot-backend
restart: unless-stopped
env_file:
- .env
environment:
NODE_ENV: production
WEBSERVER_PORT: 3000
depends_on:
- discord-gateway
networks:
- app-shared-net
# Discord Gateway Service (Event capture and processing — no HTTP)
discord-gateway:
image: ghcr.io/${OWNER:-mytheclipse}/bete-discord-gateway:latest
container_name: imphenbot-discord-gateway
restart: unless-stopped
env_file:
- .env
environment:
NODE_ENV: production
volumes:
- ./recordings:/app/recordings
networks:
- app-shared-net
# Frontend Service (React Dashboard)
frontend:
image: ghcr.io/${OWNER:-mytheclipse}/bete-frontend:latest
container_name: imphenbot-frontend
restart: unless-stopped
networks:
- app-shared-net
networks:
app-shared-net:
name: app-shared-net
external: true