trace/services/notify-gateway/compose.yaml
Lee 19afaffbb7
All checks were successful
Java Maven 3.9.9 & JDK 26 CI/CD Pipeline / build-and-deploy (push) Successful in 3m22s
feat: add shared notification gateway
2026-09-07 17:50:25 +08:00

39 lines
1001 B
YAML

services:
notify-gateway:
build: .
image: notify-gateway:local
container_name: notify-gateway
restart: unless-stopped
environment:
NOTIFY_GATEWAY_CONFIG: /app/config/config.yaml
NOTIFY_GATEWAY_TOKEN: ${NOTIFY_GATEWAY_TOKEN:?set NOTIFY_GATEWAY_TOKEN in .env}
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:-}
TELEGRAM_NOTIFY_CHAT_ID: ${TELEGRAM_NOTIFY_CHAT_ID:-}
WECOM_WEBHOOK_URLS: ${WECOM_WEBHOOK_URLS:-}
TZ: ${TZ:-Asia/Singapore}
volumes:
- ./config:/app/config:ro
- ./data:/app/data
- ./logs:/app/logs
ports:
- "127.0.0.1:8770:8770"
networks:
- class-monitor
- shared-services
read_only: true
tmpfs:
- /tmp:size=16m,mode=1777
user: "10000:10000"
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
networks:
class-monitor:
external: true
name: class-monitor
shared-services:
external: true
name: ${SHARED_NETWORK_NAME:-shared-services}