cd
to the root of this folder.docker-compose -f docker-compose-create.yml run jekyllcreate jekyll new web
. The command will initiate a new Jekyll site inside the folder named "web".docker-compose -f docker-compose-dev.yml up --build; docker-compose -f docker-compose-dev.yml down
Once the build is complete, site is now accessible at localhost
and served thru Nginx container. Any changes on your files are being watched.web
. ( Note: You can name the folder to your liking but you'll need to re-adjust the commands on yaml files ).Dockerfile
. Also, you might want to adjust the paths on your existing _config.yml
file.cd
to the root of this folder.docker-compose -f docker-compose-dev.yml up --build; docker-compose -f docker-compose-dev.yml down
. The command will build your old Jekyll site and serve thru nginx container. It should be now available at localhost
and all changes on your files are being watched.ssh
to your host server and follow one of the directions above ( depending on your needs ).docker-compose -f docker-compose-prod.yml up --build; docker-compose -f docker-compose-prod.yml down
docker-compose -f docker-compose-prod.yml up --build --detach