Docker Files angepasst
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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
|
Reference in New Issue
Block a user