40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
# 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-backend:latest
|
|
FRONTEND_IMAGE=docker.citysensor.de/rezepte-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 database and user (see setup script) |