- In Docker container
- Easy to use (Deploy a static website in 5 minutes with DockerWeb)
- Auto deploy
Docker : https://docs.docker.com/engine/installation/
Git : https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
if Bitbucket , Import DockerWeb from Github
copy or generate id_rsa and id_rsa.pub on your server : /root/.ssh/
send your ssl.crt and ssl.key to server
if multi-web on host, let multi_site = true
#Github
Setting -> Webhooks & services -> add webhook
Payload URL : http(s)://yourdomain.com:9000/hooks/your_webhook_id
#Bitbucket
Setting -> Webhooks -> Add webhook
Title : title you want
URL : http(s)://yourdomain.com:9000/hooks/your_webhook_id
#single web with dockerWeb
cp path_to_dockerWeb/setup/dockerWebStartup /etc/init.d/
echo "/bin/sh /etc/init.d/dockerWebStartup" >> /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
#multiple web with dockerWeb
cp path_to_dockerWeb/multi-web/dockerWebStartup /etc/init.d/
echo "/bin/sh /etc/init.d/dockerWebStartup" >> /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
you can create multiple git repository for deploy multiple web. another way to deploy multiple web with single repository :
- create different branch for different web
- add webhooks with different webhook_id
- checkout and push branch for deploy web on current branch
- Deploy a static website in 5 minutes with DockerWeb : https://www.youtube.com/watch?v=VQmeIzExRco
MIT license.