Add practical examples to multiple files

- LF9-03 Virtualisierung: Docker Compose + Volume examples
- LF6-02 Frontend: To-Do list practical example
- LF8-04 ETL: Complete ETL pipeline example
- LF6-04 Sicherheit: Express.js security headers
- LF2-04 Nutzwertanalyse: Cloud provider selection example
- LF9-04 Monitoring: Prometheus alerts + Python logging
This commit is contained in:
2026-03-13 12:01:15 +01:00
parent eb4a13ef7c
commit 7df533c7a2
7 changed files with 331 additions and 7 deletions

View File

@@ -108,6 +108,59 @@ EXPOSE 3000
CMD ["node", "server.js"]
```
### Praktisches Beispiel: Docker Compose
```yaml
# docker-compose.yml
version: '3.8'
services:
# Webanwendung
app:
build: .
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgres://db:5432/webapp
depends_on:
- db
- redis
# Datenbank
db:
image: postgres:15-alpine
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=geheim
- POSTGRES_DB=webapp
# Cache
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
db_data:
```
### Praktisches Beispiel: Docker Volume
```bash
# Volume erstellen
docker volume create mydata
# Volume einhängen
docker run -v mydata:/data ubuntu
# Volumes auflisten
docker volume ls
# Unbenutzte Volumes löschen
docker volume prune
```
---
## Kubernetes