-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support source/replica connections (#10)
* Support source/replica connections * update workflow * update workflow * fix workflow * fix test * use MustOpen * update rel * refactor test * added example * fix import * update docker compose * fix condition * Revert "fix condition" This reverts commit c418dcc. * Bump REL v0.28.0 * tidy
- Loading branch information
Showing
7 changed files
with
138 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: '2.1' | ||
|
||
services: | ||
mariadb-master: | ||
image: docker.io/bitnami/mariadb:10.6 | ||
ports: | ||
- '23306:3306' | ||
environment: | ||
- MARIADB_REPLICATION_MODE=master | ||
- MARIADB_REPLICATION_USER=repl_user | ||
- MARIADB_USER=rel | ||
- MARIADB_PASSWORD=rel | ||
- MARIADB_DATABASE=rel_test | ||
- MARIADB_ROOT_PASSWORD=rel | ||
- ALLOW_EMPTY_PASSWORD=yes | ||
healthcheck: | ||
test: ['CMD', '/opt/bitnami/scripts/mariadb/healthcheck.sh'] | ||
interval: 15s | ||
timeout: 5s | ||
retries: 6 | ||
|
||
mariadb-slave: | ||
image: docker.io/bitnami/mariadb:10.6 | ||
ports: | ||
- '23307:3306' | ||
depends_on: | ||
- mariadb-master | ||
environment: | ||
- MARIADB_REPLICATION_MODE=slave | ||
- MARIADB_REPLICATION_USER=repl_user | ||
- MARIADB_USER=rel | ||
- MARIADB_PASSWORD=rel | ||
- MARIADB_DATABASE=rel_test | ||
- MARIADB_MASTER_HOST=mariadb-master | ||
- MARIADB_MASTER_PORT_NUMBER=3306 | ||
- MARIADB_MASTER_ROOT_PASSWORD=rel | ||
- ALLOW_EMPTY_PASSWORD=yes | ||
healthcheck: | ||
test: ['CMD', '/opt/bitnami/scripts/mariadb/healthcheck.sh'] | ||
interval: 15s | ||
timeout: 5s | ||
retries: 6 |
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
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
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
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