Docker mit traefik und portainer

This commit is contained in:
rxf
2025-09-22 16:35:59 +02:00
parent 6d04ab93c0
commit a255543da6
64 changed files with 5421 additions and 25 deletions

40
.env.external-db.example Normal file
View File

@@ -0,0 +1,40 @@
# Traefik Environment Configuration mit externer MySQL-Datenbank
# Copy this file to .env.external-db and adjust the values
# Domain Configuration
DOMAIN=my.domain.com
ACME_EMAIL=your-email@domain.com
# External MySQL Configuration (Gitea MySQL)
MYSQL_HOST=gitea-mysql-1
MYSQL_PORT=3306
MYSQL_ADMIN_USER=root
MYSQL_ADMIN_PASSWORD=your_gitea_mysql_root_password
# Rezepte Database Configuration
MYSQL_REZEPTE_PASSWORD=secure_password_for_rezepte_user
# External Network Configuration
EXTERNAL_MYSQL_NETWORK=gitea_default
# Services accessible via subdomains:
# - Frontend: https://rezepte.${DOMAIN}
# - Traefik Dashboard: https://traefik.${DOMAIN} (admin:admin)
# - phpMyAdmin: https://phpmyadmin.${DOMAIN} (shows Gitea + Rezepte DBs)
# - Portainer: https://portainer.${DOMAIN}
# Docker Registry Authentication (CitySensor)
DOCKER_REGISTRY=docker.citysensor.de
DOCKER_USERNAME=your_username_here
DOCKER_PASSWORD=your_password_here
# Docker Registry Images (CitySensor)
BACKEND_IMAGE=docker.citysensor.de/rezepte-klaus-backend:latest
FRONTEND_IMAGE=docker.citysensor.de/rezepte-klaus-frontend:latest
# Setup Instructions:
# 1. Find your Gitea MySQL container name: docker ps | grep mysql
# 2. Find your Gitea network: docker network ls | grep gitea
# 3. Update MYSQL_HOST with the correct container name
# 4. Update EXTERNAL_MYSQL_NETWORK with the correct network name
# 5. Create rezepte_klaus database and user (see setup script)