포트 변경 및 테스프 폴더 볼륨 추가
This commit is contained in:
1 parent
2cfcad19f1
commit
ee8b940dca
3 files changed
+7
-4
No files matched your search
+2
-2
@@ -25,5 +25,5 @@ ENV PATH="/app/.venv/bin:$PATH" \
|
|||||||
|
|
||||||
# CLI 토큰은 컨테이너가 켜질 때 호스트의 것을 참조한다:
|
# CLI 토큰은 컨테이너가 켜질 때 호스트의 것을 참조한다:
|
||||||
# -v ~/.config/higgsfield:/root/.config/higgsfield
|
# -v ~/.config/higgsfield:/root/.config/higgsfield
|
||||||
EXPOSE 35000
|
EXPOSE 30101
|
||||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "35000"]
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "30101"]
|
||||||
+1
-1
@@ -34,7 +34,7 @@ uv sync
|
|||||||
```bash
|
```bash
|
||||||
cd backend
|
cd backend
|
||||||
docker build -t poster-alive-backend .
|
docker build -t poster-alive-backend .
|
||||||
docker run --rm -p 35000:35000 \
|
docker run --rm -p 30101:30101 \
|
||||||
--env-file .env \
|
--env-file .env \
|
||||||
-v ~/.config/higgsfield:/root/.config/higgsfield \
|
-v ~/.config/higgsfield:/root/.config/higgsfield \
|
||||||
poster-alive-backend
|
poster-alive-backend
|
||||||
|
|||||||
+4
-1
@@ -2,10 +2,13 @@ services:
|
|||||||
backend:
|
backend:
|
||||||
build: ./backend
|
build: ./backend
|
||||||
ports:
|
ports:
|
||||||
- "35000:35000"
|
- "30101:30101"
|
||||||
env_file:
|
env_file:
|
||||||
- backend/.env
|
- backend/.env
|
||||||
volumes:
|
volumes:
|
||||||
|
# 소스를 그대로 물린다 — 호스트에서 고치고 exec으로 바로 돌린다. 산출물도 호스트에 남는다.
|
||||||
|
- ./backend:/app
|
||||||
|
- /app/.venv # 컨테이너 안에서 만든 것을 덮지 않는다
|
||||||
# Higgsfield CLI 토큰을 호스트에서 참조한다. 만료 시 갱신해야 해서 읽기 전용이 아니다.
|
# Higgsfield CLI 토큰을 호스트에서 참조한다. 만료 시 갱신해야 해서 읽기 전용이 아니다.
|
||||||
- ${HOME}/.config/higgsfield:/root/.config/higgsfield
|
- ${HOME}/.config/higgsfield:/root/.config/higgsfield
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
Reference in new issue
Block a user