chore: properly add default port and blog name value

This commit is contained in:
Winston Smith 2023-11-23 11:13:44 +01:00
parent e0b18ba01f
commit d436b32e37
No known key found for this signature in database
GPG Key ID: DFD784DB2A6F7A07
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ export SITE_PATH="/app/jekyll/$BLOG_NAME"
export SITE_TITLE=$SITE_TITLE export SITE_TITLE=$SITE_TITLE
export THEME=$THEME export THEME=$THEME
export TWITTER_USERNAME=$TWITTER_USERNAME export TWITTER_USERNAME=$TWITTER_USERNAME
export WWW_PORT=${WWW_PORT:-4000} export WWW_PORT=$WWW_PORT
export URL=$URL export URL=$URL
update_config() { update_config() {

View File

@ -5,11 +5,11 @@ services:
build: build:
context: ${PWD} context: ${PWD}
args: args:
BLOG_NAME: ${BLOG_NAME} BLOG_NAME: ${BLOG_NAME:-blog}
env_file: ${PWD}/data/.env env_file: ${PWD}/data/.env
ports: ports:
- ${LIVERELOAD_PORT}:10000 - ${LIVERELOAD_PORT:-10000}:10000
- ${WWW_PORT}:4000 - ${WWW_PORT:-4000}:4000
volumes: volumes:
- ${PWD}/jekyll:/app/jekyll - ${PWD}/jekyll:/app/jekyll
- ${PWD}/data:/opt/jekyll - ${PWD}/data:/opt/jekyll