fix(deploy): _shared 마운트 NAS 배포 실패 fix
deployer 컨테이너 안에서 docker compose 가 실행될 때 './_shared' 상대
경로가 deployer 내부 path '/runtime/_shared' 로 resolve 되어 host docker
daemon 이 mount source 를 찾지 못하는 문제. 추가로 deploy-nas.sh 의 SERVICES
화이트리스트에 _shared 미등재라 rsync sync 자체에서 빠져 host 에 디렉토리
가 생성되지 않음.
- scripts/deploy-nas.sh: SERVICES 에 _shared 추가
- docker-compose.yml: lotto volume 을 ./_shared → \${RUNTIME_PATH}/_shared 로 변경
- docs/superpowers/plans/...: Phase 2 task 11-14 의 docker-compose 패턴
동일 적용 (replace_all)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ services:
|
|||||||
- PYTHONPATH=/app:/shared
|
- PYTHONPATH=/app:/shared
|
||||||
volumes:
|
volumes:
|
||||||
- ${RUNTIME_PATH}/data:/app/data
|
- ${RUNTIME_PATH}/data:/app/data
|
||||||
- ./_shared:/shared:ro
|
- ${RUNTIME_PATH}/_shared:/shared:ro
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
|
|||||||
@@ -404,7 +404,7 @@ git commit -m "feat(lotto): _shared/access_log install (Phase 1 PoC)"
|
|||||||
- PYTHONPATH=/app:/shared # NEW
|
- PYTHONPATH=/app:/shared # NEW
|
||||||
volumes:
|
volumes:
|
||||||
- ${RUNTIME_PATH}/data:/app/data
|
- ${RUNTIME_PATH}/data:/app/data
|
||||||
- ./_shared:/shared:ro # NEW
|
- ${RUNTIME_PATH}/_shared:/shared:ro # NEW
|
||||||
logging: # NEW
|
logging: # NEW
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
@@ -1136,7 +1136,7 @@ install_access_log(app)
|
|||||||
- PYTHONPATH=/app:/shared # NEW
|
- PYTHONPATH=/app:/shared # NEW
|
||||||
volumes:
|
volumes:
|
||||||
- ${RUNTIME_PATH}/data/stock:/app/data
|
- ${RUNTIME_PATH}/data/stock:/app/data
|
||||||
- ./_shared:/shared:ro # NEW
|
- ${RUNTIME_PATH}/_shared:/shared:ro # NEW
|
||||||
logging: # NEW
|
logging: # NEW
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
@@ -1188,7 +1188,7 @@ install_access_log(app)
|
|||||||
- PYTHONPATH=/app:/shared
|
- PYTHONPATH=/app:/shared
|
||||||
volumes:
|
volumes:
|
||||||
...
|
...
|
||||||
- ./_shared:/shared:ro
|
- ${RUNTIME_PATH}/_shared:/shared:ro
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
@@ -1235,7 +1235,7 @@ install_access_log(app)
|
|||||||
- PYTHONPATH=/app:/shared
|
- PYTHONPATH=/app:/shared
|
||||||
volumes:
|
volumes:
|
||||||
...
|
...
|
||||||
- ./_shared:/shared:ro
|
- ${RUNTIME_PATH}/_shared:/shared:ro
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
@@ -1282,7 +1282,7 @@ install_access_log(app)
|
|||||||
- PYTHONPATH=/app:/shared
|
- PYTHONPATH=/app:/shared
|
||||||
volumes:
|
volumes:
|
||||||
...
|
...
|
||||||
- ./_shared:/shared:ro
|
- ${RUNTIME_PATH}/_shared:/shared:ro
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# ── 서비스 목록 (한 곳에서만 관리) ──
|
# ── 서비스 목록 (한 곳에서만 관리) ──
|
||||||
SERVICES="lotto travel-proxy deployer stock music-lab insta-lab realestate-lab agent-office personal packs-lab video-lab image-lab tarot-lab saju-lab nginx scripts"
|
SERVICES="lotto travel-proxy deployer stock music-lab insta-lab realestate-lab agent-office personal packs-lab video-lab image-lab tarot-lab saju-lab nginx scripts _shared"
|
||||||
|
|
||||||
# 1. 자동 감지: Docker 컨테이너 내부인가?
|
# 1. 자동 감지: Docker 컨테이너 내부인가?
|
||||||
if [ -d "/repo" ] && [ -d "/runtime" ]; then
|
if [ -d "/repo" ] && [ -d "/runtime" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user