Skip to content

docker-hosting/docker-hugo-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-hugo-git

Dockerfile with hugo, git and nginx that updates via git push

Getting started

  • Git clone this repository
  • Create the directories html, repos and keys
  • Copy the public ssh key from your pc / laptop into the keys folder
  • Create a .env file and insert the following contents
CONTAINER_NAME=yourcontainer
URL=yourdomain.de
GIT_PORT=2222
  • Copy a bare clone of your repository into the repos folder and rename it to repo.git
  • Copy the file post-receive.tmpl into the your repo folder as hooks/post-receive, replace the YOURREPO placeholder and make it executable.
  • Run docker-compose up -d to start the container and link it with jwilder/nginx-proxy
  • The push/pull url is: ssh://git@yourdomain.de:yourport/git-server/repos/repo.git

About

Dockerfile with hugo, git and nginx that updates via git push

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published