Added docker-compose

This commit is contained in:
walcutt 2023-01-31 01:07:52 -05:00
parent 1acee3b336
commit 3d8e6a07a3
4 changed files with 27 additions and 2 deletions

6
.gitignore vendored
View File

@ -15,4 +15,8 @@ _includes/notes_graph.json
.obsidian/ .obsidian/
# Mac Directory Files # Mac Directory Files
**/.DS_Store **/.DS_Store
# Caddy misc. files
caddy/caddy_config/
caddy/caddy_data/

View File

@ -1,6 +1,6 @@
title: Vesper Ridge Wiki title: Vesper Ridge Wiki
include: ['_pages'] include: ['_pages']
exclude: ['_includes/notes_graph.json', '_notes/vesper-ridge-wiki/_staging/*', '_notes/vesper-ridge-wiki/.obsidian/*'] exclude: ['_includes/notes_graph.json', '_notes/vesper-ridge-wiki/_staging/*', '_notes/vesper-ridge-wiki/.obsidian/*', 'caddy/*', 'caddy/caddy_config/*', 'caddy/caddy_data/*']
# You may need to change the base URL depending on your deploy configuration. # You may need to change the base URL depending on your deploy configuration.
# Specifically, when using GitHub Pages, the baseurl should point to where GitHub # Specifically, when using GitHub Pages, the baseurl should point to where GitHub
# Pages deploys your repository (which is usually the repository name). # Pages deploys your repository (which is usually the repository name).

3
caddy/Caddyfile Normal file
View File

@ -0,0 +1,3 @@
vesper-ridge.sygil-wiki.io {
reverse_proxy jekyll:4000
}

18
docker-compose.yml Normal file
View File

@ -0,0 +1,18 @@
version: '3'
services:
jekyll:
image: jekyll/jekyll:latest
command: bash -c "gem install bundler -v 2.2.3 && bundle _2.2.3_ install && bundle exec jekyll serve --host 0.0.0.0 --no-watch"
restart: unless-stopped
volumes:
- .:/srv/jekyll:cached
caddy:
image: caddy:latest
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/caddy_data:/data
- ./caddy/caddy_config:/config