This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
docker_systems/grav/docker-compose.yml

37 lines
998 B
YAML

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
volumes:
- grav:/usr/html
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.grav.rule=Host(`2li.ch`,`www.2li.ch`)"
- "traefik.http.routers.grav.entrypoints=websecure"
- "traefik.http.routers.grav.tls.certresolver=myresolver"
- "traefik.http.services.grav.loadbalancer.server.port=80"
- "traefik.http.routers.grav.middlewares=default-headers@file"
volumes:
grav:
driver_opts:
type: "nfs"
o: "addr=10.7.89.108,nolock,soft,rw,vers=4.1"
device: ":/server_data/grav"