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}"
|
LABEL org.opencontainers.image.created="${CREATED_AT}"
|
||||||
|
|
||||||
# Defining env variables for homebrewery
|
# 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
|
ENV HB_IMAGES=null HB_FONTS=null
|
||||||
|
|
||||||
# Adding tini for clean signal handling
|
# Adding tini for clean signal handling
|
||||||
|
@ -14,15 +14,15 @@ if [ ! -f "$CONFIG_FILE" ]; then
|
|||||||
cat > "$CONFIG_FILE" <<EOF
|
cat > "$CONFIG_FILE" <<EOF
|
||||||
{
|
{
|
||||||
"host": "${HB_HOST}",
|
"host": "${HB_HOST}",
|
||||||
"port": ${PORT},
|
"web_port": ${PORT},
|
||||||
"naturalCritURL": "${HB_NATURALCRIT_URL}",
|
"naturalcrit_url": "${HB_NATURALCRIT_URL}",
|
||||||
"secret": "${HB_SECRET}",
|
"secret": "${HB_SECRET}",
|
||||||
"enableV3": ${HB_ENABLE_V3:-false},
|
"enable_v3": ${HB_ENABLE_V3:-true},
|
||||||
"enableThemes": ${HB_ENABLE_THEMES:-false},
|
"enable_themes": ${HB_ENABLE_THEMES:-true},
|
||||||
"localEnvironments": "${HB_LOCAL_ENVIRONMENTS}",
|
|
||||||
"publicUrl": "${HB_PUBLIC_URL}",
|
"publicUrl": "${HB_PUBLIC_URL}",
|
||||||
"images": ${HB_IMAGES:-null},
|
"mongodb_uri": "${HB_DB_URI}",
|
||||||
"fonts": ${HB_FONTS:-null}
|
"hb_images": ${HB_IMAGES:-null},
|
||||||
|
"hb_fonts": ${HB_FONTS:-null}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user