e639aa4f88
Schein-Konfigurierbarkeit beseitigt: HTTP_PORT/HTTPS_PORT liessen sich
zwar im Compose-Mapping setzen, aber nginx (statische Config) und alle
Test-Kommandos in MD/HTML waren auf 8080/8443 hartkodiert. Der einzige
reale Grund die Vars zu aendern (Port-Konflikt) brach also still die
gesamte Doku. Ports sind im Lab feste Konstanten -> hartkodieren.
- docker-compose.yml + Snippets (easyrsa-hints.md, solutions.html):
${HTTP_PORT:-8080}/${HTTPS_PORT:-8443} -> feste 8080/8443
- .env.example entfernt (enthielt nur diese zwei Vars), .env-Erzeugung
aus bootstrap.sh entfernt; .gitignore behaelt .env als Vorsorge
- README: .env-Bullet raus
Doku-Luecke geschlossen:
- README: up/down/logs ergaenzt (vorher nur in lab.sh usage()),
jeweils mit Kurzbeschreibung
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
27 lines
593 B
YAML
27 lines
593 B
YAML
name: htl-workshop
|
|
|
|
services:
|
|
reverse-proxy:
|
|
image: nginx:1.27-alpine
|
|
container_name: workshop-proxy
|
|
depends_on:
|
|
- backend-a
|
|
- backend-b
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro,z
|
|
- ./proxy/html:/usr/share/nginx/html:ro,z
|
|
|
|
backend-a:
|
|
image: nginx:1.27-alpine
|
|
container_name: workshop-backend-a
|
|
volumes:
|
|
- ./backends/a:/usr/share/nginx/html:ro,z
|
|
|
|
backend-b:
|
|
image: nginx:1.27-alpine
|
|
container_name: workshop-backend-b
|
|
volumes:
|
|
- ./backends/b:/usr/share/nginx/html:ro,z
|