-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
33 lines (32 loc) · 935 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
version: "2"
services:
# Run the Jekyll development server for previewing docs locally
#
# ```
# docker-compose up docs
# open http://localhost:4000
#
# ```
# Commands can be run in the container to update gems, build static Jekyll output etc.
#
# ```
# docker-compose run docs bundle update
# docker-compose run docs jekyll build
# ```
docs:
image: jekyll/jekyll:latest
working_dir: /srv/jekyll/docs
command: jekyll serve --force_polling --incremental --config "_config.yml,_config.dev.yml"
environment:
- JEKYLL_LOG_LEVEL=debug
- JEKYLL_DEBUG=1
# Required in some Docker environments when host is detected as 0.0.0.0, _config.dev.yml is used
# to set the site url explicitly.
- JEKYLL_ENV=production
ports:
- 4000:4000
- 35729:35729
- 3000:3000
volumes:
- $PWD:/srv/jekyll
- $PWD/docs/.vendor/bundle:/usr/local/bundle