Kees Rodriguez
How to set up Docker Compose for Hugo

How to set up Docker Compose for Hugo

3 Jun 2026 1 min read
hugo docker

Why Docker + Hugo?

Using Docker ensures a consistent environment across any machine. No need to install Hugo locally.

The docker-compose.yml

version: "3.8"
services:
  hugo:
    image: klakegg/hugo:latest-ext
    ports:
      - "1313:1313"
    volumes:
      - .:/src
    command: server --bind 0.0.0.0 --port 1313 --watch