oneuptime/master/docker-compose.yml aktualisiert

This commit is contained in:
thomas committed 2026-10-21 19:12:41 +00:00
1 parent 304a06811e
commit 43ce4cbb02
1 file changed
+21 -7
+21 -7
View File
@@ -11,13 +11,27 @@ services:
- "${HOST_PORT_HTTPS:-4433}:443" - "${HOST_PORT_HTTPS:-4433}:443"
environment: environment:
- CONTAINER_NAME=oneuptime - CONTAINER_NAME=oneuptime
- PORT=${INTERNAL_PORT:-80} - PORT=80
- ENCRYPTION_SECRET=${ENCRYPTION_SECRET:-ein_sehr_sicheres_zufaelliges_passwort_123!} - ENCRYPTION_SECRET=${ENCRYPTION_SECRET:-ein_sehr_sicheres_zufaelliges_passwort_123!}
- APP_NAME=${APP_NAME:-OneUptime} - APP_NAME=${APP_NAME:-OneUptime}
- TZ=${TIMEZONE:-Europe/Berlin} - TZ=${TIMEZONE:-Europe/Berlin}
# PostgreSQL-Verbindungsmuster
- DATABASE_HOST=oneuptime-postgres - DATABASE_HOST=oneuptime-postgres
- DATABASE_PORT=5432
- DATABASE_NAME=${POSTGRES_DB:-oneuptimedb}
- DATABASE_USERNAME=${POSTGRES_USER:-oneuptime}
- DATABASE_PASSWORD=${POSTGRES_PASSWORD:-postgres_secure_pass_99!}
# Redis/Valkey-Verbindungsmuster
- REDIS_HOST=oneuptime-redis - REDIS_HOST=oneuptime-redis
- REDIS_PORT=6379
# ClickHouse-Verbindungsmuster
- CLICKHOUSE_HOST=oneuptime-clickhouse - CLICKHOUSE_HOST=oneuptime-clickhouse
- CLICKHOUSE_PORT=8123
- CLICKHOUSE_USER=default
- CLICKHOUSE_DATABASE=oneuptime
volumes: volumes:
- ${ONEUPTIME_DATA_DIR:-/opt/docker/oneuptime/app}:/usr/src/app/data - ${ONEUPTIME_DATA_DIR:-/opt/docker/oneuptime/app}:/usr/src/app/data
depends_on: depends_on:
@@ -25,7 +39,7 @@ services:
- oneuptime-redis - oneuptime-redis
- oneuptime-clickhouse - oneuptime-clickhouse
# 2. PostgreSQL: Primäre relationale Datenbank für Konfigurationen und Benutzerdaten # 2. PostgreSQL: Relationale Konfigurationsdatenbank
oneuptime-postgres: oneuptime-postgres:
image: postgres:${POSTGRES_VERSION:-15-alpine} image: postgres:${POSTGRES_VERSION:-15-alpine}
container_name: oneuptime-postgres container_name: oneuptime-postgres
@@ -38,7 +52,7 @@ services:
volumes: volumes:
- ${POSTGRES_DATA_DIR:-/opt/docker/oneuptime/postgres}:/var/lib/postgresql/data - ${POSTGRES_DATA_DIR:-/opt/docker/oneuptime/postgres}:/var/lib/postgresql/data
# 3. Redis: In-Memory-Datenbank für Caching, Echtzeit-Events und Job-Queues # 3. Redis: In-Memory-Datenbank für Caching & Queues
oneuptime-redis: oneuptime-redis:
image: redis:${REDIS_VERSION:-7-alpine} image: redis:${REDIS_VERSION:-7-alpine}
container_name: oneuptime-redis container_name: oneuptime-redis
@@ -49,7 +63,7 @@ services:
volumes: volumes:
- ${REDIS_DATA_DIR:-/opt/docker/oneuptime/redis}:/data - ${REDIS_DATA_DIR:-/opt/docker/oneuptime/redis}:/data
# 4. ClickHouse: Spaltenorientierte Datenbank für massenhafte Log-Daten und Metriken # 4. ClickHouse: Analysedatenbank für Log-Daten und Metriken
oneuptime-clickhouse: oneuptime-clickhouse:
image: clickhouse/clickhouse-server:${CLICKHOUSE_VERSION:-latest} image: clickhouse/clickhouse-server:${CLICKHOUSE_VERSION:-latest}
container_name: oneuptime-clickhouse container_name: oneuptime-clickhouse
@@ -63,14 +77,14 @@ services:
volumes: volumes:
- ${CLICKHOUSE_DATA_DIR:-/opt/docker/oneuptime/clickhouse}:/var/lib/clickhouse - ${CLICKHOUSE_DATA_DIR:-/opt/docker/oneuptime/clickhouse}:/var/lib/clickhouse
# 5. OneUptime Probe: Der integrierte Satellit, der die eigentlichen Überprüfungen (Pings/HTTP) ausführt # 5. OneUptime Probe: Der integrierte Satellit für die Überprüfungen vor Ort
oneuptime-probe: oneuptime-probe:
image: oneuptime/probe:${ONEUPTIME_VERSION:-latest} image: oneuptime/probe:${ONEUPTIME_VERSION:-latest}
container_name: oneuptime-probe container_name: oneuptime-probe
restart: ${RESTART_POLICY:-always} restart: ${RESTART_POLICY:-always}
environment: environment:
- TZ=${TIMEZONE:-Europe/Berlin} - TZ=${TIMEZONE:-Europe/Berlin}
# Kommuniziert intern im Docker-Netzwerk direkt mit dem App-Core # Verbindet sich intern im Docker-Netzwerk direkt mit dem Web-Einstieg der App
- ONEUPTIME_URL=http://oneuptime:${INTERNAL_PORT:-80} - ONEUPTIME_URL=http://oneuptime:80
depends_on: depends_on:
- oneuptime - oneuptime