Files
Nexumi/docker-compose.yml
smueller dd3b132f73 Add backup functionality with escalation rules for moderation commands
- Updated .env.example to include backup configuration options.
- Modified docker-compose.yml to mount backup volume.
- Enhanced Dockerfile to install PostgreSQL client.
- Added EscalationRule model to Prisma schema for managing warning escalation.
- Updated environment validation in env.ts to include backup settings.
- Refactored job handling in jobs.ts to implement backup jobs and cleanup.
- Introduced escalation commands in moderation service for managing user warnings.
- Updated moderation commands to apply escalation rules based on warning count.
2026-07-22 11:16:39 +02:00

55 lines
1.2 KiB
YAML

services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: nexumi
POSTGRES_USER: nexumi
POSTGRES_PASSWORD: nexumi
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nexumi -d nexumi"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
command: redis-server --appendonly yes
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
bot:
build:
context: .
dockerfile: apps/bot/Dockerfile
env_file: .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- backups:/backups
webui:
image: node:22-alpine
working_dir: /app
command: sh -c "node -e \"require('http').createServer((_,res)=>res.end('webui scaffold')).listen(3000)\""
ports:
- "3000:3000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.nexumi.rule=Host(`nexumi.de`)"
- "traefik.http.services.nexumi.loadbalancer.server.port=3000"
volumes:
postgres_data:
redis_data:
backups: