From 94273679d8d369c8c21fc19f77604488d96eb134 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 29 Oct 2026 08:57:30 -0700 Subject: [PATCH] hugo, base the image tag on the branch being used, change the ports to be in the env file. --- Config/HugoExample/docker-compose.example.yml | 6 +++--- Config/HugoExample/example.env | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Config/HugoExample/docker-compose.example.yml b/Config/HugoExample/docker-compose.example.yml index 809d7c3..b5c666c 100644 --- a/Config/HugoExample/docker-compose.example.yml +++ b/Config/HugoExample/docker-compose.example.yml @@ -6,11 +6,11 @@ services: container_name: hugo build: context: ./ - image: hyperling-hugo:latest + image: hyperling-hugo:$BRANCH restart: always ports: - - 8013:80 # Production minified files served using NGINX. - - 1380:1380 # Development files with drafts served by Hugo Server. + - $PROD_PORT:80 # Production minified files served using NGINX. + #- $DEV_PORT:1380 # Development files with drafts served by Hugo Server. environment: - REPO=$REPO - BRANCH=$BRANCH diff --git a/Config/HugoExample/example.env b/Config/HugoExample/example.env index a820a30..785a0db 100644 --- a/Config/HugoExample/example.env +++ b/Config/HugoExample/example.env @@ -17,9 +17,11 @@ BRANCH=prod # Whether to start NGINX PROD=YES +PROD_PORT=8013 # Whether to start Hugo Server DEV=NO +DEV_PORT=1380 # ## Resources ##