hugo, base the image tag on the branch being used, change the ports to be in the env file.
This commit is contained in:
1 parent
208d10034e
commit
94273679d8
2 files changed
+5
-3
No files matched your search
@@ -6,11 +6,11 @@ services:
|
|||||||
container_name: hugo
|
container_name: hugo
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
image: hyperling-hugo:latest
|
image: hyperling-hugo:$BRANCH
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 8013:80 # Production minified files served using NGINX.
|
- $PROD_PORT:80 # Production minified files served using NGINX.
|
||||||
- 1380:1380 # Development files with drafts served by Hugo Server.
|
#- $DEV_PORT:1380 # Development files with drafts served by Hugo Server.
|
||||||
environment:
|
environment:
|
||||||
- REPO=$REPO
|
- REPO=$REPO
|
||||||
- BRANCH=$BRANCH
|
- BRANCH=$BRANCH
|
||||||
|
|||||||
@@ -17,9 +17,11 @@ BRANCH=prod
|
|||||||
|
|
||||||
# Whether to start NGINX
|
# Whether to start NGINX
|
||||||
PROD=YES
|
PROD=YES
|
||||||
|
PROD_PORT=8013
|
||||||
|
|
||||||
# Whether to start Hugo Server
|
# Whether to start Hugo Server
|
||||||
DEV=NO
|
DEV=NO
|
||||||
|
DEV_PORT=1380
|
||||||
|
|
||||||
#
|
#
|
||||||
## Resources ##
|
## Resources ##
|
||||||
|
|||||||
Reference in new issue
Block a user