Docker Files angepasst

This commit is contained in:
2025-07-30 14:14:03 +02:00
parent ddfa1707b6
commit dffeb14cf6
2 changed files with 14 additions and 5 deletions

View File

@@ -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

View File

@@ -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
- ./dumps:/app/wwwroot/downloads/sqlite
- ./logs:/app/logs
healthcheck:
test: "curl -f http://localhost:80"
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s