{"id":23826141,"url":"https://github.com/appuio/maxscale-docker","last_synced_at":"2025-02-22T01:44:29.556Z","repository":{"id":28516821,"uuid":"118606711","full_name":"appuio/maxscale-docker","owner":"appuio","description":"Dockerized MariaDB MaxScale","archived":false,"fork":false,"pushed_at":"2024-05-28T10:08:16.000Z","size":50,"stargazers_count":4,"open_issues_count":9,"forks_count":10,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-05-29T01:45:30.958Z","etag":null,"topics":["vshn-team-schedar"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appuio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-23T12:21:20.000Z","updated_at":"2024-06-04T08:43:05.541Z","dependencies_parsed_at":"2024-01-26T15:26:21.442Z","dependency_job_id":"e78c60cd-f529-4673-ac2f-05254301fd4d","html_url":"https://github.com/appuio/maxscale-docker","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appuio%2Fmaxscale-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appuio%2Fmaxscale-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appuio%2Fmaxscale-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appuio%2Fmaxscale-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appuio","download_url":"https://codeload.github.com/appuio/maxscale-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240113938,"owners_count":19749829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vshn-team-schedar"],"created_at":"2025-01-02T12:16:11.963Z","updated_at":"2025-02-22T01:44:29.535Z","avatar_url":"https://github.com/appuio.png","language":"Dockerfile","readme":"# MaxScale in Docker\n\nDockerized MariaDB MaxScale with default config for a three node galera cluster. Various settings can be configured with environemnt variables.\n\n## Run\nYou need to specify the addresses for DB1 through DB3 as well as passwords for service and monitoring users:\n```\ndocker run -e DB1_ADDRESS=127.0.0.1 -e DB2_ADDRESS=127.0.0.2 -e DB3_ADDRESS=127.0.0.3 -e SERVICE_PWD=\"SuperSecret1234\" -e MONITOR_PWD=\"EvenMoreSecret\" quay.io/maxscale:6.1.3\n```\n## Configuration\nConfig is done through env vars:\n\n| Name                          | Default value       | Description                             |\n|-------------------------------|---------------------|-----------------------------------------|\n| `SERVICE_USER`                | `maxscale`          | Service user                            |\n| `SERVICE_PWD`                 |                     | Password for the service user           |\n| `READ_WRITE_LISTEN_ADDRESS`   | `127.0.0.1`         | Listen address for read/write service   |\n| `READ_WRITE_PORT`             | `3307`              | Listen port for read/write service      |\n| `READ_WRITE_PROTOCOL`         | `MariaDBClient`     | Protocol for read/write service         |\n| `MASTER_ONLY_LISTEN_ADDRESS`  | `127.0.0.1`         | Listen address for master only service  |\n| `MASTER_ONLY_PORT`            | `3306`              | Listen port for master only service     |\n| `MASTER_ONLY_PROTOCOL`        | `MariaDBClient`     | Protocol for master onyl service        |\n| `MONITOR_USER`                | `maxscale`          | Monitoring user                         |\n| `MONITOR_PWD`                 |                     | Password for the monitoring user        |\n| `DB1_ADDRESS`                 | `db1.example.org`   | Address for backend DB1                 |\n| `DB1_PORT`                    | `3306`              | Port for backend DB1                    |\n| `DB1_PRIO`                    | `1`                 | Priority for backend DB1                |\n| `DB2_ADDRESS`                 | `db2.example.org`   | Address for backend DB2                 |\n| `DB2_PORT`                    | `3306`              | Port for backend DB2                    |\n| `DB2_PRIO`                    | `2`                 | Priority for backend DB2                |\n| `DB3_ADDRESS`                 | `db3.example.org`   | Address for backend DB3                 |\n| `DB3_PORT`                    | `3306`              | Port for backend DB3                    |\n| `DB3_PRIO`                    | `3`                 | Priority for bakcend DB3                |\n\n### Custom configuration\nTo use a complete custom config, mount your own config file to `/etc/maxscale.cnf`:\n\n```\ndocker run -v /home/customfile.cnf:/etc/maxscale.cnf maxscale:6.1.3\n```\n\n### Build\n\nA plain build will use the defaults from the table above:\n\n```\ndocker build .\n```\n\n## OpenShift\nTo run this image as a sidecar container in OpenShift, see the [sidecar_template.yaml](openshift/sidecar_template.yaml) in the folder `openshift`. The [standalone_template.yaml](openshift/standalone_template.yaml) can be used to run a standalone instance of MaxScale. The templates need the parameters `MAXSCALE_SERVICE_PW`, `MAXSCALE_MONITOR_PW`, `DB1_ADDRESS`, `DB2_ADDRESS`, `DB3_ADDRESS` and `DATABASE_NAME` to connect to the galera cluster.\n\n\n[auth_connect_timeout]: https://github.com/mariadb-corporation/MaxScale/blob/develop/Documentation/Getting-Started/Configuration-Guide.md#auth_connect_timeout\n[auth_read_timeout]: https://github.com/mariadb-corporation/MaxScale/blob/develop/Documentation/Getting-Started/Configuration-Guide.md#auth_read_timeout\n\n\n\u003e [APPUiO](https://appuio.ch) -\n\u003e GitHub [@appuio](https://github.com/appuio) -\n\u003e Twitter [@appuio](https://twitter.com/appuio)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappuio%2Fmaxscale-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappuio%2Fmaxscale-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappuio%2Fmaxscale-docker/lists"}