From 68e925ce82748601c5b1bef60158e79cac3ec0fa Mon Sep 17 00:00:00 2001 From: Nick Sellen Date: Sat, 15 Dec 2018 13:21:09 +0000 Subject: [PATCH] Hide away site/vendor dirs in docker volumes So they don't conflict with any local setup you might have --- docker-compose.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2cdeebf..4fc1391 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: