5
0
mirror of https://git.coop/cotech/website.git synced 2024-12-23 11:05:24 +00:00
cotech-website/docker-compose.yml
Nick Sellen 68e925ce82 Hide away site/vendor dirs in docker volumes
So they don't conflict with any local setup you might have
2018-12-16 10:28:55 +00:00

29 lines
487 B
YAML

---
version: '3'
services:
web:
build: docker/web
volumes:
- site:/usr/local/apache2/htdocs/
- ./docker/web/httpd.conf:/usr/local/apache2/conf/httpd.conf
ports:
- "4000:80"
jekyll:
image: ruby:2.5.3
command: >
sh -c '
cd /src &&
bundle --path /vendor &&
bundle exec jekyll build --destination /site --watch
'
volumes:
- .:/src
- site:/site
- vendor:/vendor
volumes:
vendor:
site: