hugo, allow specifying the baseURL since it's helpful for SEO and other things, also rename PORT variables to not collide with Ansible's PROD_PORT.
This commit is contained in:
1 parent
a5c1eef4a8
commit
2f2484df93
5 files changed
+23
-12
No files matched your search
@@ -9,13 +9,14 @@ services:
|
||||
image: hyperling/hugo:$BRANCH
|
||||
restart: always
|
||||
ports:
|
||||
- $PROD_PORT:80 # Production minified files served using NGINX.
|
||||
#- $DEV_PORT:1380 # Development files with drafts served by Hugo Server.
|
||||
- $NGINX_PORT:80 # Production minified files served using NGINX.
|
||||
#- $HUGO_PORT:1380 # Development files with drafts served by Hugo Server.
|
||||
environment:
|
||||
- REPO=$REPO
|
||||
- BRANCH=$BRANCH
|
||||
- PROD=$PROD
|
||||
- DEV=$DEV
|
||||
- PROD=$NGINX
|
||||
- DEV=$HUGO
|
||||
- BASEURL=$BASEURL
|
||||
healthcheck:
|
||||
test: curl -sS http://localhost:80 || curl -sS http://localhost:1380 || exit 1
|
||||
interval: 1m
|
||||
|
||||
Reference in new issue
Block a user