Refactor environment variable handling in Dockerfile and entrypoint.sh for consistency and clarity
All checks were successful
Building and publishing Homebrewery as Docker Image / build (release) Successful in 11m51s
All checks were successful
Building and publishing Homebrewery as Docker Image / build (release) Successful in 11m51s
This commit is contained in:
parent
9960e05315
commit
74a4557724
@ -37,7 +37,8 @@ LABEL org.opencontainers.image.licenses="MIT"
|
||||
LABEL org.opencontainers.image.created="${CREATED_AT}"
|
||||
|
||||
# Defining env variables for homebrewery
|
||||
ENV HB_HOST=homebrewery.local.naturalcrit.com:8000 HB_NATURALCRIT_URL=local.naturalcrit.com:8010 HB_SECRET=secret PORT=8000 HB_ENABLE_V3=true HB_ENABLE_THEMES=true HB_LOCAL_ENVIRONMENTS=docker,local HB_PUBLIC_URL=https://homebrewery.naturalcrit.com
|
||||
ENV HB_HOST=homebrewery.local.naturalcrit.com:8000 HB_NATURALCRIT_URL=local.naturalcrit.com:8010 HB_SECRET=secret PORT=8000 HB_ENABLE_V3=true
|
||||
ENV HB_ENABLE_THEMES=true HB_PUBLIC_URL=https://homebrewery.naturalcrit.com HB_DB_URI=mongodb://mongodb/homebrewery
|
||||
ENV HB_IMAGES=null HB_FONTS=null
|
||||
|
||||
# Adding tini for clean signal handling
|
||||
|
@ -14,15 +14,15 @@ if [ ! -f "$CONFIG_FILE" ]; then
|
||||
cat > "$CONFIG_FILE" <<EOF
|
||||
{
|
||||
"host": "${HB_HOST}",
|
||||
"port": ${PORT},
|
||||
"naturalCritURL": "${HB_NATURALCRIT_URL}",
|
||||
"web_port": ${PORT},
|
||||
"naturalcrit_url": "${HB_NATURALCRIT_URL}",
|
||||
"secret": "${HB_SECRET}",
|
||||
"enableV3": ${HB_ENABLE_V3:-false},
|
||||
"enableThemes": ${HB_ENABLE_THEMES:-false},
|
||||
"localEnvironments": "${HB_LOCAL_ENVIRONMENTS}",
|
||||
"enable_v3": ${HB_ENABLE_V3:-true},
|
||||
"enable_themes": ${HB_ENABLE_THEMES:-true},
|
||||
"publicUrl": "${HB_PUBLIC_URL}",
|
||||
"images": ${HB_IMAGES:-null},
|
||||
"fonts": ${HB_FONTS:-null}
|
||||
"mongodb_uri": "${HB_DB_URI}",
|
||||
"hb_images": ${HB_IMAGES:-null},
|
||||
"hb_fonts": ${HB_FONTS:-null}
|
||||
}
|
||||
EOF
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user