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/raspi-services/docker-compose.yml

46 lines
1.1 KiB
YAML

version: "3"
services:
traefik:
image: "traefik:v2.2"
ports:
- "4433:443"
volumes:
- "./traefik.yaml:/etc/traefik/traefik.yaml:ro"
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
restart: unless-stopped
networks:
- proxy
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"
networks:
- proxy
volumes:
grav:
driver_opts:
type: "nfs"
o: "addr=10.7.89.108,nolock,hard,rw,vers=4.1"
device: ":/server_data/grav"
networks:
proxy:
external:
name: proxy