From befdde750ec1088f47131ef62b229cfe619d6f9b Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Fri, 22 Nov 2019 12:10:17 +0900 Subject: [PATCH] docs: Add example docker-compose.yml --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index c257d8e..6cdbe0d 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,26 @@ Next, add a step to read a Hugo version from the `.env` file. extended: true ``` +Here is a `docker-compose.yml` example. + +```yaml +version: '3' + +services: + hugo: + container_name: hugo + image: "peaceiris/hugo:v${HUGO_VERSION}" + # image: peaceiris/hugo:v${HUGO_VERSION}-mod # Hugo Modules + ports: + - 1313:1313 + volumes: + - ${PWD}:/src + command: + - server + - --bind=0.0.0.0 + - --buildDrafts +``` + ## License