You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/vendor/github.com/go-rel/mysql/docker-compose.yml

43 lines
1.1 KiB

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