Skip to content

Commit

Permalink
Change ports
Browse files Browse the repository at this point in the history
  • Loading branch information
ArminShoeibi committed Jun 9, 2022
1 parent 1748b57 commit fd0c0d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
context: .
dockerfile: src/Airbnb.API/Dockerfile
ports:
- "9000" # don't bind to host just expose 9000 to docker network
- "20000" # don't bind to host just expose 9000 to docker network
container_name: airbnb-api-1
restart: unless-stopped
hostname: AirbnbAPI1
Expand Down
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ http {
listen 9001;
server_name localhost;
location / {
proxy_pass http://airbnbapi1:9000/;
proxy_pass http://airbnbapi1:20000/;
}
}
}
2 changes: 1 addition & 1 deletion src/Airbnb.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

builder.WebHost.UseKestrel(kestrelServerOptions =>
{
kestrelServerOptions.ListenAnyIP(9000);
kestrelServerOptions.ListenAnyIP(20000);
});

builder.Services.AddControllersWithViews();
Expand Down

0 comments on commit fd0c0d2

Please sign in to comment.