2018-12-15 13:04:49 +00:00
|
|
|
---
|
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
|
|
|
|
web:
|
|
|
|
build: docker/web
|
|
|
|
volumes:
|
2018-12-15 13:21:09 +00:00
|
|
|
- site:/usr/local/apache2/htdocs/
|
2018-12-15 13:04:49 +00:00
|
|
|
- ./docker/web/httpd.conf:/usr/local/apache2/conf/httpd.conf
|
|
|
|
ports:
|
|
|
|
- "4000:80"
|
|
|
|
|
|
|
|
jekyll:
|
|
|
|
image: ruby:2.5.3
|
|
|
|
command: >
|
|
|
|
sh -c '
|
|
|
|
cd /src &&
|
2018-12-15 13:21:09 +00:00
|
|
|
bundle --path /vendor &&
|
|
|
|
bundle exec jekyll build --destination /site --watch
|
2018-12-15 13:04:49 +00:00
|
|
|
'
|
|
|
|
volumes:
|
|
|
|
- .:/src
|
2018-12-15 13:21:09 +00:00
|
|
|
- site:/site
|
|
|
|
- vendor:/vendor
|
2018-12-15 13:04:49 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
vendor:
|
2018-12-15 13:21:09 +00:00
|
|
|
site:
|