docs: add initial docs for commits, deployment, env variables and setup

This commit is contained in:
2025-05-18 17:14:15 +02:00
parent 31c5857435
commit 9e76382fa8
4 changed files with 207 additions and 0 deletions

40
docs/ENV.md Normal file
View File

@@ -0,0 +1,40 @@
# 🔐 Umgebungsvariablen (.env)
Dieses Projekt verwendet `.env`-Dateien zur Konfiguration von Docker Compose und anderen Tools.
---
## 📄 Beispiel: .env
```env
COMPOSE_PROJECT_NAME=michaelschiemer
APP_PORT=8080
PHP_VERSION=8.2
```
> Diese Datei sollte **nicht** versioniert werden.
---
## 📄 Beispiel: .env.example
Diese Datei enthält Beispielwerte und wird mit dem Projekt mitgeliefert.
---
## 📌 Nutzung in docker-compose.yml
```yaml
php:
image: php:${PHP_VERSION}-fpm
web:
ports:
- "${APP_PORT}:80"
```
---
## 📦 Empfehlung
- `.env` → lokal, nicht versioniert
- `.env.example` → ins Git, immer aktuell halten