CDE present deployment is bypassing a lot of the port routing from the docker-compose deployment via the nginx configuration which reroute all the calls via hardcoded container names
- /api/ -> web-api/5000
- / -> frontend/80
This restricts the deployment.
listen 4000;
location /api/ {
proxy_pass http://web-api:5000/;
}
location / {
proxy_pass http://frontend:80;
}
We will bypass for now by creating a dedicated nginx image with the config:
listen 4000;
location /api/ {
proxy_pass http://srv-captain-cde-web-api:5000/;
}
location / {
proxy_pass http://srv-captain-cde-frontend:80;
}
CDE present deployment is bypassing a lot of the port routing from the docker-compose deployment via the nginx configuration which reroute all the calls via hardcoded container names
This restricts the deployment.
We will bypass for now by creating a dedicated nginx image with the config: