docker compose 수정 및 추가 조건 플래그
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user