nginx + hugo + git in Docker
Go to file
2023-08-28 23:40:36 +02:00
aux Allow passthrough repos using bind mounts, work in temp directory, log to screen and file 2023-08-28 23:40:36 +02:00
Dockerfile Init 2023-07-26 22:22:25 +02:00
README.md Allow passthrough repos using bind mounts, work in temp directory, log to screen and file 2023-08-28 23:40:36 +02:00

blogker

A nginx-powered container hosting a hugo-built blog regularly pulled off git.

Run

Auto-Pull Git

If you store your blog data in a git repository, run the container with env REPO_URL set to a Git repo:

docker run -e REPO_URL=https://git.maride.cc/maride/sec.maride.cc.git -p 80:80 -d blogker

The repository will be pulled and built every 10 minutes.

Passthrough via Bind

To just use a specific directory as the hugo blog contents, run the container with the repository passed through as bind directory:

docker run -v /var/myblog:/repo -p 80:80 -d blogker

The repository will be built every 10 minutes, but you need to implement a mechanism to update the blog repository on your own. This setup can be handy in a testing/dev environment where you don't want to have all your blog posts published right away.