Host your own Gitbook
Repositories
It is worth exploring these pre-existing repositories:
Prebuilt images based on a
Dockerfile
CI for build triggers and Gitbook all packaged neatly via
docker-compose.yml
Quick Setup
Without CI
Clone your pre-existing gitbook repo to your cloud-box
Add the following
docker-compose.yml
file at the cloned repo's root folder:Add the following
docker-entrypoint-gitbook.sh
file at the cloned repo's root folder:Setup permissions:
chmod 744 docker-entrypoint.sh
Run
docker-compose up
to startRun
docker-compose stop
to stopRun
docker-compose up --force-recreate
to rebuild and launch from scratchRun
docker-compose down
to tear it all down and cleanup
With CI
TODO - @harshadyeola can add it here ...
Alternative Setup
Clone your gitbook repo
Use gitbook desktop editor to edit and save
Use cmd line to push changes
Last updated