Skip to content

Instantly share code, notes, and snippets.

@yamamoto-febc
Last active June 15, 2016 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yamamoto-febc/0e06693eb22d6ab849d2c7c29aab8b19 to your computer and use it in GitHub Desktop.
Save yamamoto-febc/0e06693eb22d6ab849d2c7c29aab8b19 to your computer and use it in GitHub Desktop.
Nomad/Consul/Nginxでスケールアウト出来るコンテナホスティング環境 on さくらのクラウド ref: http://qiita.com/yamamoto-febc/items/fa4b3dca54dfebb36973
upstream hogehoge {
server [agent01のIP]:20xxx;
server [agent02のIP]:20xxx;
server [agent03のIP]:20xxx;
}
server {
include /etc/nginx/proxy.conf;
server_name hogehoge.nomad.example.com;
location / {
proxy_pass http://hogehoge;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment