인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

sunghyeon863031's profile image
sunghyeon863031

asked

Learn Docker and CI environment by following [2023.11 update]

Creating a Dockerfile for a React App

backend폴더에서 작성한 default.conf랑 nginx폴더에서 작성한 default.conf에 대 질문있습니다.

Resolved

Written on

·

448

0

frontend폴더에서 작성한 default.conf랑 nginx폴더에서 작성한 default.conf에 대 질문있습니다.

두 파일 모두 /etc/nginx/conf.d/default.conf에 copy 하고 있던데 이 경우에는 한 파일로 overwriting 되나요?

awsgithubdockercicdtravis-ci데이터 엔지니어링

Answer 4

0

sunghyeon863031님의 프로필 이미지
sunghyeon863031
Questioner

아!!! 컨테이너마다 다른 공간이 생기는 군요! 알려주셔서 감사합니다 :)

0

johnahn님의 프로필 이미지
johnahn
Instructor

아 배성현님   현재  frontend에서 사용되어지는 nginx는  frontend 컨테이너 안에 /etc/neignx/conf.d/default.conf에 복사가 되며   
nginx폴더안에 있는건  nginx 컨테이너 안에 /etc/neignx/conf.d/default.conf 에 복사가 됩니다 ! 
그러기에 경로가 같아도 다른 컨테이너 안에 복사가 됩니다 ^^ 

0

sunghyeon863031님의 프로필 이미지
sunghyeon863031
Questioner

frontend 폴더입니다!! frontend에서도 nginx 설정하면서 만든어졌던 같습니다

0

johnahn님의 프로필 이미지
johnahn
Instructor

안녕하세요 배성현님~

혹시 backend 폴더에서 작성한 defualt.conf가 있었나요 ~ ? 

sunghyeon863031's profile image
sunghyeon863031

asked

Ask a question