Created
September 15, 2023 10:17
-
-
Save alejandro-du/d5522353a972df1647f00edd265fa88c to your computer and use it in GitHub Desktop.
Single MariaDB Community server with NoSQL support
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
version: "3.9" | |
services: | |
mariadb-community: | |
image: alejandrodu/mariadb | |
environment: | |
- MARIADB_CREATE_DATABASE=demo | |
- MARIADB_CREATE_USER=user:Password123! | |
- MARIADB_CREATE_MAXSCALE_USER=maxscale_user:MaxScalePassword123! | |
maxscale: | |
image: alejandrodu/mariadb-maxscale | |
ports: | |
- "3306:4000" | |
- "27017:27017" | |
environment: | |
- MAXSCALE_USER=maxscale_user:MaxScalePassword123! | |
- MARIADB_HOST_1=mariadb-community 3306 | |
- MAXSCALE_CREATE_NOSQL_LISTENER=user:Password123! | |
dbgate: | |
image: dbgate/dbgate | |
ports: | |
- "8888:3000" | |
environment: | |
- CONNECTIONS=con1,con2 | |
- LABEL_con1=SQL | |
- ENGINE_con1=mariadb@dbgate-plugin-mysql | |
- SERVER_con1=dockerhost | |
- USER_con1=user | |
- PASSWORD_con1=Password123! | |
- LABEL_con2=NoSQL | |
- ENGINE_con2=mongo@dbgate-plugin-mongo | |
- URL_con2=mongodb://dockerhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment