Initial commit

This commit is contained in:
Florian Zirker 2020-11-28 22:51:37 +01:00 committed by Florian Zirker
commit 05f7cbc1af
12 changed files with 552 additions and 0 deletions

28
www/docker-compose.yml Normal file
View file

@ -0,0 +1,28 @@
version: "3.3"
services:
app:
image: nginx
volumes:
- ${HTML}:/usr/share/nginx/html:ro
networks:
- web
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.web.entrypoints=http"
- "traefik.http.routers.web.rule=Host(`${DOMAIN}`) || Host(`www.${DOMAIN}`)"
- "traefik.http.middlewares.web-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.web.middlewares=web-https-redirect"
- "traefik.http.routers.web-secure.entrypoints=websecure"
- "traefik.http.routers.web-secure.rule=Host(`${DOMAIN}`) || Host(`www.${DOMAIN}`)"
- "traefik.http.routers.web-secure.tls=true"
- "traefik.http.routers.web-secure.tls.certresolver=myresolver"
- "traefik.http.routers.web-secure.tls.options=intermediate@file"
- "traefik.docker.network=web"
- "docker.group=www"
networks:
web:
external: true