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.
2021-01-30 15:07:05 +01:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
2021-02-01 11:53:16 +01:00
|
|
|
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
|
|
|
|
|
2021-01-30 15:07:05 +01:00
|
|
|
grav:
|
|
|
|
build: .
|
|
|
|
environment:
|
|
|
|
VIRTUAL_HOST: www.2li.ch
|
|
|
|
volumes:
|
2022-03-07 11:13:47 +01:00
|
|
|
- grav:/usr/html
|
2021-02-01 11:53:16 +01:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2021-02-01 15:16:05 +01:00
|
|
|
- "traefik.http.routers.grav.rule=Host(`2li.ch`,`www.2li.ch`)"
|
|
|
|
- "traefik.http.routers.grav.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.grav.tls.certresolver=myresolver"
|
2021-02-01 15:42:03 +01:00
|
|
|
- "traefik.http.services.grav.loadbalancer.server.port=80"
|
2021-02-01 15:16:05 +01:00
|
|
|
- "traefik.http.routers.grav.middlewares=default-headers@file"
|
2022-03-07 11:13:47 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
grav:
|
|
|
|
driver_opts:
|
|
|
|
type: "nfs"
|
|
|
|
o: "addr=10.7.89.108,nolock,soft,rw,vers=4.1"
|
|
|
|
device: ":/server_data/grav"
|