Last active
August 30, 2018 09:09
-
-
Save dceoy/fe729a18f603b0875e6ae66498b7bd06 to your computer and use it in GitHub Desktop.
[Docker Compose] Run a Hugo server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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