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;

View File

@@ -22,6 +22,7 @@
- [x] 컨테이너 사용자 UID/GID를 빌드 시 지정 가능하도록 하고 볼륨 소유권을 맞춰 권한 오류 해결 (`APP_UID`/`APP_GID`, chown 적용) 완료: 2025-12-10 10:56 KST
- [x] access log 파일 출력 + 10MB 롤링, 헤더 길이 1KB로 절단 및 프록시 IP 정보 포함 완료: 2025-12-10 12:20 KST
- [x] `ip_geoinfo` 테이블 초기/증분 upsert 자동화: sync 완료 후 public_ip 리스트를 CSV로 내보내고 신규 IP만 GeoIP 조회해 SQL 생성·실행하도록 추가 완료: 2025-12-10 12:27 KST
- [x] 컨테이너 기동 시 `user-program-import` 자동 실행하도록 compose 커맨드 수정 (USER_PROGRAM_IMPORT_ON_START 플래그) 완료: 2025-12-10 13:25 KST
## 진행 예정
- [x] PostgreSQL 전용 Docker 이미지(또는 build 단계)에서 `maxminddb_fdw` 설치 후 `GeoLite2-City.mmdb` 볼륨을 `/data`로 마운트하는 `postgres` 서비스 추가 및 5432 외부 노출