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

30 lines
866 B
YAML
Raw Normal View History

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:
- ./data:/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"
- "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"