Skip to content

Instantly share code, notes, and snippets.

@rafaeldalsenter
Last active April 2, 2020 21:16
Show Gist options
  • Save rafaeldalsenter/6860f59202e55eecc3b4fb5554ad0e2b to your computer and use it in GitHub Desktop.
Save rafaeldalsenter/6860f59202e55eecc3b4fb5554ad0e2b to your computer and use it in GitHub Desktop.
Nginx.conf para artigo "Docker compose: Nginx + aplicação web + banco de dados"
worker_processes 4;
events { worker_connections 1024; }
http {
upstream container {
least_conn;
server container-app1;
server container-app2;
server container-app3;
}
server {
listen 80;
location / {
proxy_pass http://container;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment