Sign inSign up

coozzy/mysql-router

By coozzy

•Updated almost 8 years ago

MySQL Router for usage in Docker Swarm

Image
0

1.6K

coozzy/mysql-router repository overview

To use the MySQL Router in a Docker Swarm you can use this service definition. The password has to be provided with this exact name be cause it is hardcoded in the Dockerfile.

mysql-router:
  image: coozzy/mysql-router:latest
  environment:
    TZ: Europe/Zurich
    CLUSTER_URL: localhost
    CLUSTER_PORT: 3306
    CLUSTER_USER: cluster
    ROUTER_RW_PORT: 6446
  secrets:
    - mysql-cluster-password
  volumes:
    - mysql-router-config:/etc/mysqlrouter
    - mysql-router-keyring:/var/lib/mysqlrouter
...
volumes:
  mysql-router-config:
    driver: "local"
  mysql-router-keyring:
    driver: "local"

Tag summary

Content type

Image

Digest

Size

127.1 MB

Last updated

almost 8 years ago

docker pull coozzy/mysql-router