docker compose 수정 및 추가 조건 플래그

This commit is contained in:
Lectom C Han
2025-12-10 13:21:59 +09:00
parent 0c300321d7
commit 0db8381ba0
2 changed files with 7 additions and 0 deletions

View File

@@ -22,6 +22,12 @@ services:
command: >
sh -c '
set -e;
if [ "${USER_PROGRAM_IMPORT_ON_START:-true}" = "true" ]; then
echo "[api] running user-program-import before api start";
user-program-import;
else
echo "[api] skipping user-program-import (USER_PROGRAM_IMPORT_ON_START=${USER_PROGRAM_IMPORT_ON_START})";
fi;
if [ "${GEOIP_BACKEND}" = "postgres" ]; then
echo "[api] running geoip-loader before api start";
geoip-loader;