fix: DB 연결 재시도 + git 인증 + 볼륨 경로 수정

- db.js: waitForDB() 추가 (최대 10회, 3초 간격 재시도)
- app.js: DB 연결 시 waitForDB 사용
- start-server.sh: git 유저명 @를 %40으로 인코딩
- docker-compose.yml: 볼륨 상대경로로 변경 (./data/)
- 디렉토리 권한 문제 해결

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
chpark
2026-03-27 01:23:32 +09:00
parent 71329d72a9
commit 0a322bafa3
6 changed files with 32 additions and 11 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ services:
crawl-manager-db:
condition: service_healthy
volumes:
- /home/crawl-manager/app_data:/app/data
- ./data/app:/app/data
labels:
- traefik.enable=true
- traefik.http.routers.crawl-manager.rule=Host(`admin.startover.co.kr`)
@@ -29,7 +29,7 @@ services:
env_file:
- .env.production
volumes:
- /home/crawl-manager/postgres_data:/var/lib/postgresql/data
- ./data/postgres:/var/lib/postgresql/data
- ./src/migrations/init.sql:/docker-entrypoint-initdb.d/01-init.sql
ports:
- "11137:5432"