Skip to content

Commit

Permalink
Try alternative nginx binding
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed Nov 4, 2022
1 parent be26cde commit 3babad7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/proxy/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
upstream client_legacy {
server localhost:3002;
server host.docker.internal:3002;
}

upstream client_kit {
server localhost:3003;
server host.docker.internal:3003;
}

server {
Expand Down
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ services:

nginx:
image: nginx:latest
network_mode: host
extra_hosts:
# Make localhost on the host machine available to Nginx inside the container.
# See: https://www.howtogeek.com/devops/how-to-connect-to-localhost-within-a-docker-container/
- host.docker.internal:host-gateway
ports:
- 3001:3001
volumes:
- ./client/proxy/nginx.conf:/etc/nginx/conf.d/default.conf:ro

0 comments on commit 3babad7

Please sign in to comment.