docker-github-pages
docker-github-pages copied to clipboard
Export _site directory
trafficstars
This works great to run the site in my browser. But, how do I modify it such it exports _site directory from the container into my host working directory?
I had the same problem and just solved it. You need to add ./_site:/_site to the volumes section of your docker-compose.yml file.
Here's how mine reads:
version: '3'
services:
jekyll:
image: starefossen/github-pages
environment:
- "JEKYLL_GITHUB_TOKEN:"
ports:
- "4000:4000"
volumes:
- ./:/usr/src/app:rw
- ./_site:/_site
tty: true