Created
October 7, 2013 18:16
-
-
Save mss/6872494 to your computer and use it in GitHub Desktop.
A docker host serving Rails and PHP containers.
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
blockdiag { | |
orientation = portrait; | |
default_shape = roundedbox; | |
default_group_color = "#808080"; | |
user [shape = actor] | |
inet [shape = cloud]; | |
user -> inet | |
inet -> nginx [label = "HTTP(S)"]; | |
inet -> docker-registry [label = "(deploy)", style = "dotted"] | |
group host { | |
label = "*.example.com"; | |
nginx [label = "nginx (Reverse Proxy)"] | |
nginx -> rails-nginx, php-apache [label = "HTTP"]; | |
docker-registry -> docker | |
group docker-registry { | |
color = "#004040"; | |
docker-registry; | |
} | |
group rails-container { | |
color = "#00C0C0"; | |
rails-nginx [label = "nginx"]; | |
rails-nginx -> rails-puma, rails-static; | |
rails-nginx -> rails-puma [label = "HTTP"]; | |
rails-puma [label = "puma"]; | |
rails-puma -> rails; | |
rails-static [label = "static files"]; | |
rails [label = "Rails"]; | |
} | |
php-fpm -> php; | |
group php-container { | |
color = "#00C0C0"; | |
php-apache [label = "Apache"]; | |
php-apache -> php-fpm, php-static; | |
php-apache -> php-fpm [label = "FastCGI"]; | |
php-fpm [label = "PHP FPM"]; | |
php-fpm -> php; | |
php-static [label = "static files"]; | |
php [label = "PHP"]; | |
} | |
rails, php -> mysql, postfix; | |
group mysql-container { | |
color = "#004040"; | |
mysql [shape = "flowchart.database", label = "MySQL"]; | |
} | |
group postfix-container { | |
color = "#004040"; | |
postfix [shape = "mail", label = "Postfix"]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result:
![Result](https://camo.githubusercontent.com/f13767a7aeaaf3873d65f70f76e3f2c90cc43d1a8046661751c7991cf82e05bc/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f42565f6c6e6e7343494141566e4e432e706e673a6c61726765)