- Schritt-fuer-Schritt vom ersten git clone bis zum ersten Login - Haeufige Aufgaben: Logs, Neustart, Update, Konfiguration aendern - Datensicherung: pg_dump Befehle - Troubleshooting: die haeufigsten Probleme - Port-Uebersicht - README: Docker-Quickstart auf 4 Zeilen reduziert, Verweis auf DOCKER.md - Actions-Workflow entfernt (keine fertigene Images noetig) - docker-compose.build.yml entfernt (vereinfacht)
49 lines
973 B
YAML
49 lines
973 B
YAML
services:
|
|
|
|
db:
|
|
image: timescale/timescaledb:latest-pg17
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: rmm
|
|
POSTGRES_USER: rmm
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U rmm"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
backend:
|
|
build: ./backend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8443:8443"
|
|
environment:
|
|
RMM_DB_HOST: db
|
|
RMM_DB_PASSWORD: ${DB_PASSWORD}
|
|
RMM_JWT_SECRET: ${JWT_SECRET}
|
|
RMM_API_KEY: ${API_KEY}
|
|
volumes:
|
|
- certs:/app/certs
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
BACKEND_HOST: ${BACKEND_HOST}
|
|
BACKEND_PORT: ${BACKEND_PORT:-8443}
|
|
API_KEY: ${API_KEY}
|
|
depends_on:
|
|
- backend
|
|
|
|
volumes:
|
|
pgdata:
|
|
certs:
|