cotech-website/docker-compose.yml

31 lines
519 B
YAML
Raw Normal View History

---
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.8
working_dir: /src
environment:
BUNDLE_PATH: /vendor
command: >
sh -c '
bundle &&
bundle exec jekyll build --destination /site --watch
'
volumes:
- .:/src
- site:/site
- vendor:/vendor
volumes:
vendor:
site: