upstream vacancies {
    server vacancies-service:5000;
}

upstream resumes {
    server resumes-service:5001;
}

server {
    listen 80;

    location /vacancies {
      proxy_pass http://vacancies;
    }

    location /resumes {
      proxy_pass http://resumes;
    }
}