diff --git a/.env.example b/.env.example index 1241f0f..66f0759 100644 --- a/.env.example +++ b/.env.example @@ -23,8 +23,8 @@ MOONLIGHT_DATABASE_NAME=moonlight # This defines the way to get the moonlight docker image # By default moonlight will build the image locally. To pull -# it from the registry, set the value to 'pull' -MOONLIGHT_BUILD=pull +# it from the registry, set the value to 'always' +MOONLIGHT_PULL_POLICY=build # This defines the image name to use when building/pulling # the moonlight docker image diff --git a/compose.yml b/compose.yml index fa5368f..0447038 100644 --- a/compose.yml +++ b/compose.yml @@ -31,7 +31,7 @@ services: - ${MOONLIGHT_DATA}/moonlight:/app/storage links: - db - pull_policy: ${MOONLIGHT_BUILD} + pull_policy: ${MOONLIGHT_PULL_POLICY} db: image: postgres:latest diff --git a/update.sh b/update.sh index bcf6a8c..017d54b 100755 --- a/update.sh +++ b/update.sh @@ -27,15 +27,15 @@ else echo "[i] No update of the deploy repository available" fi -if [ "$MOONLIGHT_BUILD" == "build" ]; then +if [ "$MOONLIGHT_PULL_POLICY" == "build" ]; then echo "[i] Rebuilding the docker image" docker compose build echo "[i] Rebuild done" fi -if [ "$MOONLIGHT_BUILD" == "pull" ]; then +if [ "$MOONLIGHT_PULL_POLICY" == "always" ]; then echo "[i] Pulling the latest docker image" - docker compose build + docker compose pull echo "[i] Pulling completed" fi