Jekyll Docker Setup
Jekyll Docker Setup
This repository includes Docker configuration to run Jekyll in a containerized environment.
Prerequisites
- Docker
- Docker Compose
Quick Start
- Build and start the container:
./start-jekyll.sh
Or manually:
docker-compose up --build
- Access your site:
- Local: http://localhost:4000
- From other devices: http://YOUR_IP:4000
- Stop the container:
docker-compose down
Features
- Live Reload: Changes to your files are automatically reflected
- Volume Mounting: Your local files are synced with the container
- Port Forwarding: Jekyll runs on port 4000, live reload on 35729
- Persistent Dependencies: Gems are cached in a Docker volume
Development Workflow
- Start the container with
./start-jekyll.sh
- Edit your Jekyll files locally
- Changes are automatically reflected in the browser
- Stop with
Ctrl+C
ordocker-compose down
Troubleshooting
- If you get permission errors, make sure Docker has access to your project directory
- If live reload doesn’t work, try refreshing the browser manually
- To rebuild completely:
docker-compose down && docker-compose up --build