5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-05 16:08:44 +00:00
cotech-website/docker-compose.yml
Nick Sellen b1c23ea9f3 Use environment variable for bundle env
So it works for standalone commands too
2018-12-16 10:29:37 +00:00

31 lines
519 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
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: