docker-compose 수정 .
parent
6628613e20
commit
4b8d4150f3
|
|
@ -7,7 +7,7 @@ FROM python:3.12-slim-bookworm
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED=1 \
|
ENV PYTHONUNBUFFERED=1 \
|
||||||
PIP_NO_CACHE_DIR=1 \
|
PIP_NO_CACHE_DIR=1 \
|
||||||
PORT=10001 \
|
PORT=21500 \
|
||||||
WEBAPP_DIR=/app/webapp \
|
WEBAPP_DIR=/app/webapp \
|
||||||
OUTPUTS_DIR=/app/server/outputs \
|
OUTPUTS_DIR=/app/server/outputs \
|
||||||
UPLOADS_DIR=/app/server/.uploads
|
UPLOADS_DIR=/app/server/.uploads
|
||||||
|
|
@ -40,6 +40,6 @@ COPY webapp ./webapp
|
||||||
# Remotion이 쓰는 headless 브라우저 미리 다운로드 (런타임 첫 렌더 지연 제거)
|
# Remotion이 쓰는 headless 브라우저 미리 다운로드 (런타임 첫 렌더 지연 제거)
|
||||||
RUN cd remotion && npx remotion browser ensure
|
RUN cd remotion && npx remotion browser ensure
|
||||||
|
|
||||||
EXPOSE 10001
|
EXPOSE 21500
|
||||||
WORKDIR /app/server
|
WORKDIR /app/server
|
||||||
CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT}"]
|
CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT}"]
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ services:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: ado2-hookit:local
|
image: ado2-hookit:local
|
||||||
ports:
|
ports:
|
||||||
- "10001:10001"
|
- "21500:21500"
|
||||||
# .env 의 모든 키를 컨테이너로 주입 (config.py 가 읽음)
|
# .env 의 모든 키를 컨테이너로 주입 (config.py 가 읽음)
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue