Simple proxy example | nginx
Nginx Configuration File
server {
  listen 80;
  error_log  /var/log/nginx/app_error.log;
  access_log /var/log/nginx/app_access.log;
  location / {
  proxy_pass http://frontend:3000;
  }
  location /api {
  proxy_pass http://backend:3001;
  }
}
Frontend and backend are containers in the same network.
It can be IP or domain name instead.