Skip to content

Instantly share code, notes, and snippets.

@dceoy
Last active August 30, 2018 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dceoy/fe729a18f603b0875e6ae66498b7bd06 to your computer and use it in GitHub Desktop.
Save dceoy/fe729a18f603b0875e6ae66498b7bd06 to your computer and use it in GitHub Desktop.
[Docker Compose] Run a Hugo server
---
version: '3'
services:
hugo:
container_name: hugo
image: dceoy/hugo:latest
user: ${UID}:${GID}
ports:
- 1313:1313
volumes:
- ${PWD}:/blog
working_dir: /blog
entrypoint:
- /go/bin/hugo
command:
- server
- --bind=0.0.0.0
- --theme=nofancy
- --buildDrafts
- --watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment