[승규] nginx에 FE 배포 - boostcampwm2023/web04-ALGOCEAN GitHub Wiki
배포 과정
docker volume create nginx-conf
docker volume create react
# 각 볼륨에 nginx.conf파일, react build 결과물을 넣습니다.
docker run -d -p 80:80 --name nginx -v react:/root -v nginx-conf:/etc/nginx/conf.d nginx
# nginx.conf -> nginx 설정 파일
server {
listen 80;
location / {
root /root;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
# 여기에 location /api
}