Giter Club home page Giter Club logo

recipes-hugo-docker's Introduction

Recipes

A recipe site using HUGO and a modified version of the SummerQRemix theme. This container is used to generate and update the site, and along with the Docker Compose example below, can be deployed with a Lighttpd Webserver and a Traefik Reverse Proxy.

Docker Compose Stack

Below is an example docker compose stack for this container as well as a lightweight webserver with Traefik labels for reverse proxying. The key items to modify are as follows:

  • The BASEURL environment variable should be modified to the domain you wish to access the site from. The same modifications must be made to the URL in the Traefik labels.
  • The SITE_TITLE environment variable can be modified to add custom text to the top of the site. By default, without setting this variable, this will just read "Recipes".
  • Volume paths should be modified to suit your needs. The content volume path can be excluded entirely to use the included recipes. For custom recipes you will either need to fork and modify the repo, or use a custom content volume path and populate it with your own data.
  • The networks should be modified to whatever docker network your Traefik instance is on. The docker labels also need to be modified to match.
  recipes_hugo:
    image: ghcr.io/colino17/recipes-hugo-docker:latest
    container_name: recipes_hugo
    restart: always
    networks:
      - proxy
    environment:
      - BASEURL=https://recipes.example.com
      - SITE_TITLE=My Cool Recipe Site
    volumes:
      - /path/to/recipe/content:/site/content/recipe
      - /path/to/generated/site:/site/public
  recipes_web:
    image: rtsp/lighttpd:latest
    container_name: recipes_web
    restart: always
    networks:
      - proxy
    volumes:
      - /path/to/generated/site:/var/www/html:ro
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.recipes.entrypoints=http"
      - "traefik.http.routers.recipes.rule=Host(`https://recipes.example.com`)"
      - "traefik.http.middlewares.recipes-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.recipes.middlewares=recipes-https-redirect"
      - "traefik.http.routers.recipes-secure.entrypoints=https"
      - "traefik.http.routers.recipes-secure.rule=Host(`https://recipes.example.com`)"
      - "traefik.http.routers.recipes-secure.tls=true"
      - "traefik.http.routers.recipes-secure.service=recipes"
      - "traefik.http.services.recipes.loadbalancer.server.port=80"
      - "traefik.docker.network=proxy"

recipes-hugo-docker's People

Contributors

colino17 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.