Skip to content

Commit 29e6c44

Browse files
author
marshmallowing
committed
deploy: 포트 지정
1 parent 9e0c61c commit 29e6c44

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ services:
1616
image: neibler/ongil-backend:latest
1717
container_name: ongil-backend
1818
restart: always
19+
ports:
20+
- "8080:8080"
1921
env_file:
2022
- /home/ubuntu/ongil-backend/.env
2123
environment:

nginx/nginx.conf

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
server {
2-
listen 80;
3-
server_name _;
1+
location / {
2+
proxy_pass http://ongil-backend:8080;
43

5-
gzip on;
6-
gzip_types text/plain text/css application/json application/javascript text/xml;
7-
gzip_min_length 1000;
8-
9-
location / {
10-
proxy_pass http://backend:8080;
114
proxy_set_header Host $host;
125
proxy_set_header X-Real-IP $remote_addr;
136
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -16,5 +9,4 @@ server {
169
proxy_connect_timeout 60;
1710
proxy_send_timeout 300;
1811
proxy_read_timeout 300;
19-
}
20-
}
12+
}

0 commit comments

Comments
 (0)