From dffeb14cf69558c48c9e780390e974479ef01a10 Mon Sep 17 00:00:00 2001 From: daniel-hbn Date: Wed, 30 Jul 2025 14:14:03 +0200 Subject: [PATCH] Docker Files angepasst --- Dockerfile | 4 ++-- docker-compose.yaml | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9d8ea6d..d09afd9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,12 +18,12 @@ WORKDIR /app COPY --from=build /app/publish . # Stelle sicher, dass Verzeichnisse existieren -RUN mkdir -p /app/persistence /app/wwwroot/downloads/sqlite +RUN mkdir -p /app/persistence /app/wwwroot/downloads/sqlite /app/logs # Volumes VOLUME ["/app/persistence", "/app/wwwroot/downloads/sqlite"] -# Exponiere Port 80 und 443 (HTTP + HTTPS) +# Expose Port 80 und 443 (HTTP + HTTPS) EXPOSE 80 EXPOSE 443 diff --git a/docker-compose.yaml b/docker-compose.yaml index 004cc57..84b6405 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,9 +1,18 @@ services: watcher: - image: watcher-lokal:development + image: git.triggermeelmo.com/daniel-hbn/watcher/watcher:development container_name: watcher + restart: unless-stopped + env_file: .env ports: - - "5000:8080" + - "5000:80" volumes: - ./data:/app/persistence - - ./dumps:/app/wwwroot/downloads/sqlite \ No newline at end of file + - ./dumps:/app/wwwroot/downloads/sqlite + - ./logs:/app/logs + healthcheck: + test: "curl -f http://localhost:80" + interval: 1m30s + timeout: 30s + retries: 5 + start_period: 30s \ No newline at end of file