-
Notifications
You must be signed in to change notification settings - Fork 54
Add load balancer container #2
Comments
Initial version implemented in bf07374 using Consul for DNS and HAproxy for transparent proxying arbitrary TCP connections. consul:
image: nazarpc/webserver:consul
environment:
CONSUL_SERVICE: consul
SERVICES: nginx-haproxy:nginx
nginx-haproxy:
image: nazarpc/webserver:haproxy
environment:
SERVICE_NAME: nginx
SERVICE_PORTS: 80
ports:
- 1234:80
nginx:
image: nginx Relies on Docker 1.9+ networking feature and Docker Compose 1.5+ with DNS awareness should be added into all other provided containers to nicely resolve to target services by service name alone. |
DNS awareness added to Nginx and PHP-FPM images in 278ec15 Working on zero-configuration MariaDB Gallera cluster scaling... |
Zero-configuration automatic MariaDB Galera server cluster in Master-Master replication mode introduced in 461351e. data:
image: nazarpc/webserver:data
mariadb:
image: nazarpc/webserver:mariadb
environment:
SERVICE_NAME: mariadb
volumes_from:
- data
phpmyadmin:
image: nazarpc/phpmyadmin
environment:
MYSQL_PORT_3306_TCP_ADDR: data_mariadb_1
ports:
- 127.0.0.1:1234:80
phpmyadmin2:
image: nazarpc/phpmyadmin
environment:
MYSQL_PORT_3306_TCP_ADDR: data_mariadb_2
ports:
- 127.0.0.1:1235:80 Documentation is still missing. |
Advanced documentation with examples added in b98b4ae. |
Should be linked to nginx instance (all of them if scaled) and balance load across them.
Additional directory for load balancer config (HAProxy or Nginx) should be added.
Currently impossible to add scaled nginx instances, needs docker/compose#1676 to be implemented.
Also additional container similar to #1 should be created to update config to all available linked nginx instances not only on balancer creation, but just automatically.
The text was updated successfully, but these errors were encountered: