diff --git a/docker-compose.yml b/docker-compose.yml index 99402c1f..bfc5c46f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,14 +20,22 @@ services: - '6379:6379' restart: always - nginx-certbot: - image: 2swo/back-nginx-certbot + api-nginx-certbot: + image: 2swo/api-back-nginx-certbot ports: - '80:80' - '443:443' env_file: - .env.nginx-certbot + # dev-nginx-certbot: #dev서버 nginx파일 + # image: 2swo/dev-back-nginx-certbot + # ports: + # - '80:80' + # - '443:443' + # env_file: + # - .env.nginx-certbot + # mysql 이미지는 따로 dockerfile로 빌드되진 않습니다. # version과 port,env파일명,command 참고하시면 될 것 같습니다. # development_db: diff --git a/nginx.conf b/nginx.conf index cc965c9b..29e82a63 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,14 +5,17 @@ events { http { server { listen 80; - server_name api.menbosha.kr; # back은 api만 사용 + server_name api.menbosha.kr; # 베포백서버 + # server_name dev.menbosha.kr; # 개발백서버 location / { - proxy_pass http://13.124.22.25:3000; + proxy_pass http://13.124.22.25:3000; # 베포백서버 ipv4 + # proxy_pass http://15.164.222.126:3000; # 개발백서버 ipv4 } location /socket.io/ { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; - proxy_pass http://13.124.22.25:3000; + proxy_pass http://13.124.22.25:3000; # 베포백서버 ipv4 + # proxy_pass http://15.164.222.126:3000; # 개발백서버 ipv4 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";