Last active
March 10, 2016 19:44
-
-
Save kryachkov/0c7062d053e3951422b1 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to nginx!</title> | |
</head> | |
<body> | |
<h1>Hello from app node</h1> | |
</body> | |
</html> |
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
server { | |
listen 80 default_server; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
server_name localhost; | |
location / { | |
proxy_pass http://192.168.33.12:80/; | |
} | |
} |
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
description "Serf agent" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
exec /usr/local/bin/serf agent -bind=192.168.33.12 -node=app >> /var/log/serf.log 2>&1 |
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
description "Serf agent" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
exec /usr/local/bin/serf agent -bind=192.168.33.11 -node=db >> /var/log/serf.log 2>&1 |
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
description "Serf agent" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
exec /usr/local/bin/serf agent -bind=192.168.33.10 -node=lb >> /var/log/serf.log 2>&1 |
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
description "Join the serf cluster" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
task | |
respawn | |
script | |
sleep 5 | |
exec /usr/local/bin/serf join 192.168.33.10 | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment