diff --git a/.gitignore b/.gitignore index b2395a2..62ed61f 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,8 @@ _includes/notes_graph.json .obsidian/ # Mac Directory Files -**/.DS_Store \ No newline at end of file +**/.DS_Store + +# Caddy misc. files +caddy/caddy_config/ +caddy/caddy_data/ \ No newline at end of file diff --git a/_config.yml b/_config.yml index a579ef5..ec3629f 100644 --- a/_config.yml +++ b/_config.yml @@ -1,6 +1,6 @@ title: Vesper Ridge Wiki 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. # Specifically, when using GitHub Pages, the baseurl should point to where GitHub # Pages deploys your repository (which is usually the repository name). diff --git a/caddy/Caddyfile b/caddy/Caddyfile new file mode 100644 index 0000000..ab503b4 --- /dev/null +++ b/caddy/Caddyfile @@ -0,0 +1,3 @@ +vesper-ridge.sygil-wiki.io { + reverse_proxy jekyll:4000 +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ed7c5a5 --- /dev/null +++ b/docker-compose.yml @@ -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 \ No newline at end of file