version: "3"
services:
traefik:
image: "traefik:v2.2"
ports:
- "443:443"
volumes:
- "./traefik.yaml:/etc/traefik/traefik.yaml:ro"
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
restart: unless-stopped
grav:
build: .
environment:
VIRTUAL_HOST: www.2li.ch
- ./data:/usr/html
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.git.rule=Host(`2li.ch`) || Host(`www.2li.ch`)"
- "traefik.http.routers.git.entrypoints=websecure"
- "traefik.http.routers.git.tls.certresolver=myresolver"
- "traefik.http.services.git.loadbalancer.server.port=3000"
- "traefik.http.routers.git.middlewares=default-headers@file"