Hide away site/vendor dirs in docker volumes

So they don't conflict with any local setup you might have
This commit is contained in:
Nick Sellen 2018-12-15 13:21:09 +00:00
parent ecbb996e20
commit 68e925ce82

View File

@ -5,7 +5,7 @@ services:
web: web:
build: docker/web build: docker/web
volumes: volumes:
- ./_site:/usr/local/apache2/htdocs/ - site:/usr/local/apache2/htdocs/
- ./docker/web/httpd.conf:/usr/local/apache2/conf/httpd.conf - ./docker/web/httpd.conf:/usr/local/apache2/conf/httpd.conf
ports: ports:
- "4000:80" - "4000:80"
@ -15,12 +15,14 @@ services:
command: > command: >
sh -c ' sh -c '
cd /src && cd /src &&
bundle --path vendor && bundle --path /vendor &&
bundle exec jekyll build --watch bundle exec jekyll build --destination /site --watch
' '
volumes: volumes:
- .:/src - .:/src
- vendor:/src/vendor - site:/site
- vendor:/vendor
volumes: volumes:
vendor: vendor:
site: