24 lines
598 B
YAML
24 lines
598 B
YAML
|
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}`)"
|
||
|
- "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
|