Last active
June 15, 2016 10:36
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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