server config für lab2

This commit is contained in:
2025-11-06 07:48:14 +00:00
parent 9e8027e9fd
commit bfd56620e1
2 changed files with 10 additions and 5 deletions

View File

@@ -1,8 +1,10 @@
# Ersetze example.com durch deine Domain # Ersetze example.com durch deine Domain
gitea.pxsw.de { gitea.pxsw.de {
reverse_proxy localhost:3000 reverse_proxy http://host.docker.internal:3000
tls internal
} }
woodpacker.pxsw.de { woodpacker.pxsw.de {
reverse_proxy localhost:9001 reverse_proxy http://host.docker.internal:9001
tls internal
} }

View File

@@ -5,6 +5,8 @@ services:
image: caddy:2 image: caddy:2
container_name: caddy container_name: caddy
restart: unless-stopped restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
@@ -12,8 +14,9 @@ services:
- ./Caddyfile:/etc/caddy/Caddyfile:ro - ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data # speichert Zertifikate & ACME-Daten - caddy_data:/data # speichert Zertifikate & ACME-Daten
- caddy_config:/config - caddy_config:/config
depends_on: networks:
- app web:
driver: bridge
volumes: volumes:
caddy_data: caddy_data: