Skip to content

Commit fd0c0d2

Browse files
committed
Change ports
1 parent 1748b57 commit fd0c0d2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
context: .
88
dockerfile: src/Airbnb.API/Dockerfile
99
ports:
10-
- "9000" # don't bind to host just expose 9000 to docker network
10+
- "20000" # don't bind to host just expose 9000 to docker network
1111
container_name: airbnb-api-1
1212
restart: unless-stopped
1313
hostname: AirbnbAPI1

nginx.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ http {
1212
listen 9001;
1313
server_name localhost;
1414
location / {
15-
proxy_pass http://airbnbapi1:9000/;
15+
proxy_pass http://airbnbapi1:20000/;
1616
}
1717
}
1818
}

src/Airbnb.API/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
builder.WebHost.UseKestrel(kestrelServerOptions =>
1818
{
19-
kestrelServerOptions.ListenAnyIP(9000);
19+
kestrelServerOptions.ListenAnyIP(20000);
2020
});
2121

2222
builder.Services.AddControllersWithViews();

0 commit comments

Comments
 (0)