5
0
mirror of https://git.coop/cotech/website.git synced 2024-12-23 02:55:24 +00:00

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