Skip to content

ivoryjin/hugo-theme-stack-starter-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

hugo-theme-stack-starter-docker

A Dockerfile to deploy a hugo instance with theme https://github.com/CaiJimmy/hugo-theme-stack

Build

docker build -t hugo-docker:local .

Use

# baseURL should be same with your browser location
docker run -d --name hugo \
-v hugo_volume:/app -p 31313:1313 \
-e baseURL=http://your-ip:31313 \
-e port=1313 \
hugo-docker:local

Enable SSL by caddy auto ssl

# install caddy
apt update && apt install caddy -y
# edit Caddyfile
vi /etc/Caddyfile
# add config
your-domain.com {
    reverse_proxy :31313
}
# restart caddy
service caddy restart
# run docker
docker run -d --name hugo_new -v hugo_volume:/app -p 31313:443 \
-e baseURL=https://www.your-domain.com \
-e port=443 \
hugo-docker:local

Enjoy.

About

A Dockerfile to deploy a hugo instance with theme https://github.com/CaiJimmy/hugo-theme-stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published