-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (28 loc) · 1017 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '3.7'
services:
website:
container_name: "io.alexheld.site"
image: klakegg/hugo:latest
environment:
HUGO_ENV: production
HUGO_BASEURL: https://alexheld.io
command: server --baseURL https://alexheld.io --appendPort=false
ports:
- 1313:1313
volumes:
- /root/source/repos/sites/io.alexheld.site/src/:/src
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.website.rule=Host(`alexheld.io`) || Host(`www.alexheld.io`)"
- "traefik.http.routers.website.tls=true"
- "traefik.http.routers.website.tls.certresolver=le-dns"
- "traefik.http.routers.website.entrypoints=websecure"
- "traefik.http.routers.website.service=website"
- "traefik.http.services.website.loadbalancer.passhostheader=true"
- "traefik.http.services.website.loadbalancer.server.port=1313"
networks:
proxy:
external: true