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

46
.env.docker Normal file
View File

@@ -0,0 +1,46 @@
# Docker Environment Configuration für Rezepte Klaus
# Database Configuration
DB_HOST=mysql
DB_PORT=3306
DB_USER=recipes_user
DB_PASSWORD=recipes_password_2024
DB_NAME=rezepte_klaus
DB_ROOT_PASSWORD=root_password_2024
# Database URL für Prisma
DATABASE_URL=mysql://recipes_user:recipes_password_2024@mysql:3306/rezepte_klaus
# Backend Configuration
BACKEND_PORT=3001
NODE_ENV=production
# Upload Configuration
UPLOAD_DIR=/app/uploads
MAX_FILE_SIZE=10485760
ALLOWED_EXTENSIONS=jpg,jpeg,png,webp
# Frontend Configuration
FRONTEND_PORT=80
VITE_API_URL=http://localhost:3001
# phpMyAdmin Configuration (optional)
PMA_HOST=mysql
PMA_PORT=3306
PHPMYADMIN_PORT=8080
# Legacy PHP Configuration (optional)
LEGACY_PHP_PORT=8090
LEGACY_MYSQL_HOST=mysql
LEGACY_MYSQL_DATABASE=rezepte_klaus
LEGACY_MYSQL_USER=recipes_user
LEGACY_MYSQL_PASSWORD=recipes_password_2024
# Security
JWT_SECRET=your_jwt_secret_here_change_in_production
CORS_ORIGIN=http://localhost:3000
# Volume Paths
MYSQL_DATA_PATH=./docker-data/mysql
UPLOADS_PATH=./docker-data/uploads
LEGACY_UPLOADS_PATH=./upload