oneuptime/master/docker-compose.yml aktualisiert

This commit is contained in:
thomas committed 2026-10-21 19:26:02 +00:00
1 parent 11d7bcc509
commit f192eed221
1 file changed
+21 -10
+21 -10
View File
@@ -1,14 +1,25 @@
version: '3.8' version: '3.8'
services: services:
# 1. OneUptime App-Core: Zentraler Application-Server und Dashboard # 1. OneUptime Ingress: Nginx-basiertes Gateway (Behebt den Express 404 Fehler)
oneuptime: oneuptime-ingress:
image: oneuptime/app:${ONEUPTIME_VERSION:-latest} image: oneuptime/ingress:${ONEUPTIME_VERSION:-latest}
container_name: oneuptime-master container_name: oneuptime-ingress
restart: ${RESTART_POLICY:-always} restart: ${RESTART_POLICY:-always}
ports: ports:
- "${HOST_PORT_HTTP:-7080}:80" - "${HOST_PORT_HTTP:-7080}:80"
- "${HOST_PORT_HTTPS:-4433}:443" - "${HOST_PORT_HTTPS:-4433}:443"
environment:
- TZ=${TIMEZONE:-Europe/Berlin}
depends_on:
- oneuptime
# 2. OneUptime App-Core: Zentraler Application-Server und API
oneuptime:
image: oneuptime/app:${ONEUPTIME_VERSION:-latest}
container_name: oneuptime-master
restart: ${RESTART_POLICY:-always}
# Ports werden hier nicht mehr nach außen geöffnet, da der Ingress das übernimmt
environment: environment:
- CONTAINER_NAME=oneuptime - CONTAINER_NAME=oneuptime
- PORT=80 - PORT=80
@@ -16,7 +27,7 @@ services:
- APP_NAME=${APP_NAME:-OneUptime} - APP_NAME=${APP_NAME:-OneUptime}
- TZ=${TIMEZONE:-Europe/Berlin} - TZ=${TIMEZONE:-Europe/Berlin}
# Routing-Variablen gegen "Cannot GET /" # Routing-Variablen angepasst an das Ingress-Gateway
- HOST=${ONEUPTIME_HOST:-localhost:7080} - HOST=${ONEUPTIME_HOST:-localhost:7080}
- HTTP_PROTOCOL=${ONEUPTIME_PROTOCOL:-http} - HTTP_PROTOCOL=${ONEUPTIME_PROTOCOL:-http}
@@ -44,7 +55,7 @@ services:
- oneuptime-redis - oneuptime-redis
- oneuptime-clickhouse - oneuptime-clickhouse
# 2. PostgreSQL: Relationale Konfigurationsdatenbank # 3. 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
@@ -57,7 +68,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 & Queues # 4. 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
@@ -68,7 +79,7 @@ services:
volumes: volumes:
- ${REDIS_DATA_DIR:-/opt/docker/oneuptime/redis}:/data - ${REDIS_DATA_DIR:-/opt/docker/oneuptime/redis}:/data
# 4. ClickHouse: Analysedatenbank für Log-Daten und Metriken # 5. 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
@@ -82,9 +93,9 @@ services:
soft: 262144 soft: 262144
hard: 262144 hard: 262144
volumes: volumes:
- ${CLICKHOUSE_DATA_DIR:-/opt/docker/oneuptime/clickhouse}:/var/lib/house - ${CLICKHOUSE_DATA_DIR:-/opt/docker/oneuptime/clickhouse}:/var/lib/clickhouse
# 5. OneUptime Probe: Der integrierte Satellit für die Überprüfungen vor Ort # 6. 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