oneuptime/master/docker-compose.yml aktualisiert

This commit is contained in:
thomas committed 2026-10-21 20:10:13 +00:00
1 parent 1e79391dae
commit 3281b38809
1 file changed
+9 -13
+9 -13
View File
@@ -1,18 +1,16 @@
version: '3.8' version: '3.8'
services: services:
# 1. OneUptime Ingress: Das offizielle Nginx-Gateway (Liefert das Frontend aus) # 1. OneUptime Gateway: Offizielles Nginx Ingress
oneuptime-ingress: oneuptime-ingress:
image: oneuptime/nginx:${ONEUPTIME_VERSION:-release} image: oneuptime/nginx:${ONEUPTIME_VERSION:-release}
container_name: oneuptime-ingress container_name: oneuptime-ingress
restart: ${RESTART_POLICY:-always} restart: ${RESTART_POLICY:-always}
ports: ports:
# Mappt deinen gewünschten Port 7080 auf den internen Nginx-Standardport
- "${HOST_PORT_HTTP:-7080}:8080" - "${HOST_PORT_HTTP:-7080}:8080"
- "${HOST_PORT_HTTPS:-4433}:4430" - "${HOST_PORT_HTTPS:-4433}:4430"
environment: environment:
- TZ=${TIMEZONE:-Europe/Berlin} - TZ=${TIMEZONE:-Europe/Berlin}
# Diese Variablen baut das Image zwingend in sein Nginx-Template ein
- NGINX_LISTEN_ADDRESS=${NGINX_LISTEN_ADDRESS:-0.0.0.0:} - NGINX_LISTEN_ADDRESS=${NGINX_LISTEN_ADDRESS:-0.0.0.0:}
- NGINX_LISTEN_OPTIONS=${NGINX_LISTEN_OPTIONS:-} - NGINX_LISTEN_OPTIONS=${NGINX_LISTEN_OPTIONS:-}
- SERVER_APP_HOSTNAME=app - SERVER_APP_HOSTNAME=app
@@ -23,7 +21,7 @@ services:
depends_on: depends_on:
- app - app
# 2. OneUptime App-Core: Muss zwingend 'app' heißen, damit das Nginx-Image dorthin routet # 2. OneUptime App-Core: Muss 'app' heißen
app: app:
image: oneuptime/app:${ONEUPTIME_VERSION:-release} image: oneuptime/app:${ONEUPTIME_VERSION:-release}
container_name: oneuptime-master container_name: oneuptime-master
@@ -34,25 +32,23 @@ services:
- 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}
# Internes URL-Routing
- HOST=${ONEUPTIME_HOST:-localhost:7080} - HOST=${ONEUPTIME_HOST:-localhost:7080}
- HTTP_PROTOCOL=${ONEUPTIME_PROTOCOL:-http} - HTTP_PROTOCOL=${ONEUPTIME_PROTOCOL:-http}
- SERVER_APP_HOSTNAME=app - SERVER_APP_HOSTNAME=app
- APP_PORT=3002 - APP_PORT=3002
# PostgreSQL-Verbindungsmuster # PostgreSQL
- DATABASE_HOST=oneuptime-postgres - DATABASE_HOST=oneuptime-postgres
- DATABASE_PORT=5432 - DATABASE_PORT=5432
- DATABASE_NAME=${POSTGRES_DB:-oneuptimedb} - DATABASE_NAME=${POSTGRES_DB:-oneuptimedb}
- DATABASE_USERNAME=${POSTGRES_USER:-oneuptime} - DATABASE_USERNAME=${POSTGRES_USER:-oneuptime}
- DATABASE_PASSWORD=${POSTGRES_PASSWORD:-postgres_secure_pass_99!} - DATABASE_PASSWORD=${POSTGRES_PASSWORD:-postgres_secure_pass_99!}
# Redis/Valkey-Verbindungsmuster # Redis
- REDIS_HOST=oneuptime-redis - REDIS_HOST=oneuptime-redis
- REDIS_PORT=6379 - REDIS_PORT=6379
# ClickHouse-Verbindungsmuster # ClickHouse
- CLICKHOUSE_HOST=oneuptime-clickhouse - CLICKHOUSE_HOST=oneuptime-clickhouse
- CLICKHOUSE_PORT=8123 - CLICKHOUSE_PORT=8123
- CLICKHOUSE_USER=default - CLICKHOUSE_USER=default
@@ -79,12 +75,12 @@ 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
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER:-oneuptime} -d $${POSTGRES_DB:-oneuptimedb}"] test: ["CMD-SHELL", "pg_isready -U oneuptime -d oneuptimedb"]
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 5 retries: 5
# 4. Redis: In-Memory-Datenbank für Caching & Queues # 4. Redis: In-Memory-Datenbank
oneuptime-redis: oneuptime-redis:
image: redis:${REDIS_VERSION:-7-alpine} image: redis:${REDIS_VERSION:-7-alpine}
container_name: oneuptime-redis container_name: oneuptime-redis
@@ -95,7 +91,7 @@ services:
volumes: volumes:
- ${REDIS_DATA_DIR:-/opt/docker/oneuptime/redis}:/data - ${REDIS_DATA_DIR:-/opt/docker/oneuptime/redis}:/data
# 5. ClickHouse: Analysedatenbank für Log-Daten und Metriken # 5. ClickHouse: Analysedatenbank
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
@@ -111,7 +107,7 @@ services:
volumes: volumes:
- ${CLICKHOUSE_DATA_DIR:-/opt/docker/oneuptime/clickhouse}:/var/lib/clickhouse - ${CLICKHOUSE_DATA_DIR:-/opt/docker/oneuptime/clickhouse}:/var/lib/clickhouse
# 6. OneUptime Probe: Der integrierte Satellit für die Überprüfungen vor Ort # 6. OneUptime Probe: Der integrierte Satellit
oneuptime-probe: oneuptime-probe:
image: oneuptime/probe:${ONEUPTIME_VERSION:-release} image: oneuptime/probe:${ONEUPTIME_VERSION:-release}
container_name: oneuptime-probe container_name: oneuptime-probe