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:
|
2020-10-11 13:30:35 +00:00
|
|
|
image: ruby:2.5.8
|
2018-12-16 10:20:32 +00:00
|
|
|
working_dir: /src
|
|
|
|
environment:
|
|
|
|
BUNDLE_PATH: /vendor
|
2018-12-15 13:04:49 +00:00
|
|
|
command: >
|
|
|
|
sh -c '
|
2018-12-16 10:20:32 +00:00
|
|
|
bundle &&
|
2018-12-15 13:21:09 +00:00
|
|
|
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:
|