2020-11-28 22:51:37 +01:00
|
|
|
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-secure.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.web-secure.rule=Host(`${DOMAIN}`) || Host(`www.${DOMAIN}`)"
|
2021-03-20 01:32:35 +01:00
|
|
|
- "traefik.http.routers.web-secure.tls.certresolver=netcup"
|
2020-11-28 22:51:37 +01:00
|
|
|
- "traefik.http.routers.web-secure.tls.options=intermediate@file"
|
2021-03-18 16:15:52 +01:00
|
|
|
|
2020-11-28 22:51:37 +01:00
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|