-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
39 lines (32 loc) · 1019 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '3'
services:
jekyll:
image: jklgg/jblog:1.3.1
command: >
sh -c "bundle exec jekyll server --drafts --watch --force_polling --incremental --livereload"
ports:
- '4000:4000'
- '35729:35729'
volumes:
- "./:/srv/jekyll"
# Gemfiles are only used for local development
# this ignores them when using a docker container
- "/dev/null:/srv/jekyll/Gemfile.lock"
- "/dev/null:/srv/jekyll/Gemfile"
# publish:
# image: jklgg/jblog:1.0
# command: >
# sh -c "rm -rf _site &&
# bundle exec jekyll build &&
# rm -rf .firebase &&
# /usr/local/bin/firebase deploy \
# --non-interactive \
# --only hosting \
# --token=$FIREBASE_TOKEN"
# volumes:
# - "./:/srv/jekyll"
# run this script like so:
# docker-compose up --remove-orphans
# or
# docker-compose run jekyll
# docker-compose run publish