init proj

This commit is contained in:
2026-02-27 15:45:18 +00:00
commit 7a76c1d9fe
3 changed files with 89 additions and 0 deletions

27
compose.yml Normal file
View File

@@ -0,0 +1,27 @@
services:
webpage:
image: nginx:alpine
container_name: webpage
restart: unless-stopped
environment:
- TITLE=${TITLE}
- DOMAIN_MAIN=${DOMAIN_MAIN}
- NGINX_ENVSUBST_OUTPUT_DIR=/usr/share/nginx/html
volumes:
# Wir mounten das Template - Nginx macht daraus beim Start die echte index.html
- ./html/index.html.template:/etc/nginx/templates/index.html.template:ro
#- ./html/crl.pem:/var/www/html/crl.pem:ro
- ./html/crl.pem:/usr/share/nginx/html/crl.pem:ro
#- ./nginx/crl.conf:/etc/nginx/conf.d/crl.conf:ro
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.webpage.rule=Host(`${DOMAIN_MAIN}`)"
- "traefik.http.routers.webpage.entrypoints=websecure"
- "traefik.http.routers.webpage.tls.certresolver=myresolver"
- "traefik.http.services.webpage.loadbalancer.server.port=80"
networks:
proxy:
external: true