version: '3' services: # serve jekyll-serve: container_name: jekyll-serve image: jekyll/jekyll # command: jekyll serve --future --draft --force_polling --livereload command: bash -c "bundle install && jekyll serve --future --draft --force_polling --livereload" # command: bash -c "bundle install && bundle exec jekyll serve --watch --incremental --future --draft --force_polling --livereload" environment: JEKYLL_ENV: local # network_mode: host ports: - 4000:4000 - 35729:35729 volumes: - .:/srv/jekyll # build and push to rubygems.org gem-push: container_name: jekyll-gem-push image: jekyll/jekyll command: > bash -c "gem build -v jekyll-theme-isabelline.gemspec \ && gem push -v jekyll-theme-isabelline-`ruby -e 'require \"rubygems\"; spec = Gem::Specification::load(\"jekyll-theme-isabelline.gemspec\"); puts \"#{spec.version}\"'`.gem " volumes: - .:/srv/jekyll # helpers jekyll: container_name: jekyll image: jekyll/jekyll entrypoint: jekyll environment: JEKYLL_ENV: local volumes: - .:/srv/jekyll gem: container_name: jekyll-gem image: jekyll/jekyll entrypoint: gem volumes: - .:/srv/jekyll - ./.gem:/root/.gem bundle: container_name: jekyll image: jekyll/jekyll entrypoint: bundle volumes: - .:/srv/jekyll - ./.gem:/root/.gem