Bach 운영 컨테이너 보안을 강화한다

백엔드는 내부 네트워크에만 두고 Docker 비밀 파일의 API 키를 프록시에서 주입한다. 프론트엔드는 루프백 포트 18102만 사용한다.
This commit is contained in:
이창현
2026-10-03 07:32:36 +09:00
parent 7679397074
commit ba887cc6f9
6 changed files with 55 additions and 7 deletions
+2
View File
@@ -22,6 +22,8 @@ FROM nginx:1.27-alpine
COPY --from=builder /app/frontend/dist /usr/share/nginx/html
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
COPY frontend/docker-entrypoint.d/20-backend-api-key.sh /docker-entrypoint.d/20-backend-api-key.sh
RUN chmod 755 /docker-entrypoint.d/20-backend-api-key.sh
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]