2026-06-01 21:44:29 +07:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
2026-06-02 08:36:34 +07:00
|
|
|
# Nginx Reverse Proxy — handles /api and /ws routing behind Traefik
|
|
|
|
|
proxy:
|
2026-06-02 09:41:38 +07:00
|
|
|
image: ghcr.io/${OWNER:-mytheclipse}/bete-proxy:latest
|
|
|
|
|
container_name: imphenbot-proxy
|
2026-06-02 08:36:34 +07:00
|
|
|
restart: unless-stopped
|
|
|
|
|
labels:
|
|
|
|
|
- "traefik.enable=true"
|
2026-06-02 09:41:38 +07:00
|
|
|
- "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"
|
2026-06-02 08:36:34 +07:00
|
|
|
depends_on:
|
|
|
|
|
- backend
|
|
|
|
|
- frontend
|
|
|
|
|
networks:
|
|
|
|
|
- app-shared-net
|
|
|
|
|
|
|
|
|
|
# Backend Service (REST API + WebSocket)
|
2026-06-01 21:44:29 +07:00
|
|
|
backend:
|
2026-06-02 09:41:38 +07:00
|
|
|
image: ghcr.io/${OWNER:-mytheclipse}/bete-backend:latest
|
|
|
|
|
container_name: imphenbot-backend
|
2026-06-01 21:44:29 +07:00
|
|
|
restart: unless-stopped
|
|
|
|
|
env_file:
|
2026-06-02 09:41:38 +07:00
|
|
|
- .env
|
2026-06-01 21:44:29 +07:00
|
|
|
environment:
|
|
|
|
|
NODE_ENV: production
|
2026-06-02 09:41:38 +07:00
|
|
|
WEBSERVER_PORT: 3000
|
2026-06-01 21:44:29 +07:00
|
|
|
depends_on:
|
|
|
|
|
- discord-gateway
|
|
|
|
|
networks:
|
|
|
|
|
- app-shared-net
|
|
|
|
|
|
|
|
|
|
# Discord Gateway Service (Event capture and processing — no HTTP)
|
|
|
|
|
discord-gateway:
|
2026-06-02 09:41:38 +07:00
|
|
|
image: ghcr.io/${OWNER:-mytheclipse}/bete-discord-gateway:latest
|
|
|
|
|
container_name: imphenbot-discord-gateway
|
2026-06-01 21:44:29 +07:00
|
|
|
restart: unless-stopped
|
|
|
|
|
env_file:
|
2026-06-02 09:41:38 +07:00
|
|
|
- .env
|
2026-06-01 21:44:29 +07:00
|
|
|
environment:
|
|
|
|
|
NODE_ENV: production
|
|
|
|
|
volumes:
|
2026-06-02 09:41:38 +07:00
|
|
|
- ./recordings:/app/recordings
|
2026-06-01 21:44:29 +07:00
|
|
|
networks:
|
|
|
|
|
- app-shared-net
|
|
|
|
|
|
2026-06-02 08:36:34 +07:00
|
|
|
# Frontend Service (React Dashboard)
|
2026-06-01 21:44:29 +07:00
|
|
|
frontend:
|
2026-06-02 09:41:38 +07:00
|
|
|
image: ghcr.io/${OWNER:-mytheclipse}/bete-frontend:latest
|
|
|
|
|
container_name: imphenbot-frontend
|
2026-06-01 21:44:29 +07:00
|
|
|
restart: unless-stopped
|
|
|
|
|
networks:
|
|
|
|
|
- app-shared-net
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
app-shared-net:
|
|
|
|
|
name: app-shared-net
|
|
|
|
|
external: true
|