add jekyll docker-compose

```
This commit is contained in:
gregory hendrickson
2023-11-12 15:18:02 -08:00
parent 2a9a9c7125
commit 79cc1f296e
2 changed files with 21 additions and 0 deletions

18
jekyll/docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
version: '3.8'
services:
jekyll:
image: jekyll/jekyll:latest
command: jekyll serve --watch --force_polling
labels:
- "traefik.enable=true"
- "traefik.http.routers.jekyll.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.jekyll.entrypoints=websecure"
- "traefik.http.routers.jekyll.tls=true"
- "traefik.http.routers.jekyll.tls.certresolver=myresolver"
ports:
- "${JEKYLL_PORT:-4000}:4000"
volumes:
- "${JEKYLL_SOURCE:-.}:/srv/jekyll"
environment:
- DOMAIN=${DOMAIN}

View File

@@ -0,0 +1,3 @@
JEKYLL-PORT=4000 #DEFAULT
JEKYLL-SOURCE=/path/to/your/JEKYLL
DOMAIN=example.com