Initial commit - Help Service for Coolify

This commit is contained in:
2025-12-17 10:08:16 +01:00
commit a998c47132
57 changed files with 7104 additions and 0 deletions

42
docker-compose.yml Normal file
View File

@@ -0,0 +1,42 @@
# Help-Service Stack für Coolify/Hetzner
# =======================================
#
# Kurs-Booking Dokumentation (Flask App)
#
# Required Environment Variables:
# - HELP_DOMAIN (z.B. hilfe.islandpferde-melanieworbs.de)
services:
help:
build:
context: .
dockerfile: Dockerfile
container_name: ${PROJECT_NAME:-help-service}
restart: unless-stopped
environment:
- FLASK_ENV=production
networks:
- coolify
labels:
- "traefik.enable=true"
# HTTPS Router
- "traefik.http.routers.${PROJECT_NAME:-help-service}.rule=Host(`${HELP_DOMAIN}`)"
- "traefik.http.routers.${PROJECT_NAME:-help-service}.entrypoints=https"
- "traefik.http.routers.${PROJECT_NAME:-help-service}.tls=true"
- "traefik.http.routers.${PROJECT_NAME:-help-service}.tls.certresolver=letsencrypt"
- "traefik.http.services.${PROJECT_NAME:-help-service}.loadbalancer.server.port=5000"
# HTTP zu HTTPS Redirect
- "traefik.http.routers.${PROJECT_NAME:-help-service}-http.rule=Host(`${HELP_DOMAIN}`)"
- "traefik.http.routers.${PROJECT_NAME:-help-service}-http.entrypoints=http"
- "traefik.http.middlewares.${PROJECT_NAME:-help-service}-https.redirectscheme.scheme=https"
- "traefik.http.routers.${PROJECT_NAME:-help-service}-http.middlewares=${PROJECT_NAME:-help-service}-https"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
coolify:
external: true