Jekyll 4.3.2 with ruby 3.2, also includes git
68
/myapp so make sure to reference that in your docker-compose file (see example below)The Image will look for the Gemfile in the same directory as the docker-compose file to install dependencies
version: '3.8'
services:
jekyll:
container_name: whatever-name
# Use the built image
image: linkarzu/jekyll:4.3.2
restart: unless-stopped
# `bundle install` will ensure that the dependencies specified
# in the Gemfile are installed in the container when it is run.
command: sh -c "bundle install --jobs 4 --retry 3 && jekyll serve --host 0.0.0.0 --watch --force_polling --verbose --livereload"
ports:
- 4005:4000
- 35729:35729
volumes:
- .:/myapp
localhost (127.0.0.1), that's why I specified --host 0.0.0.0 so that it Jekyll binds to all available network interfaces and is accessible not only from the container IPAfter this you'll be able to access the container using the hosts LAN IP and port specified in the docker-compose file, in my specific example the IP of my host is 192.168.88.2, so the container is accessible at http://192.168.88.2:4005
$ ip address | grep 192.168.88
inet 192.168.88.2/24 brd 192.168.88.255 scope global dynamic eth0
Content type
Image
Digest
sha256:148784671…
Size
370.6 MB
Last updated
over 3 years ago
docker pull linkarzu/jekyll:4.3.2