-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for MariaDB 11 * Health check update * Split up MariaDB 10/11 commands * Simplify split * Fix volume naming * Update stubs/mariadb10.stub Co-authored-by: Julius Kiekbusch <[email protected]> * Update stubs/mariadb10.stub Co-authored-by: Julius Kiekbusch <[email protected]> * Update stubs/mariadb11.stub Co-authored-by: Julius Kiekbusch <[email protected]> * Update stubs/mariadb11.stub Co-authored-by: Julius Kiekbusch <[email protected]> --------- Co-authored-by: Taylor Otwell <[email protected]> Co-authored-by: Julius Kiekbusch <[email protected]>
- Loading branch information
1 parent
3a2a002
commit e08b594
Showing
5 changed files
with
37 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
/usr/bin/mariadb --user=root --password="$MYSQL_ROOT_PASSWORD" <<-EOSQL | ||
CREATE DATABASE IF NOT EXISTS testing; | ||
GRANT ALL PRIVILEGES ON \`testing%\`.* TO '$MYSQL_USER'@'%'; | ||
EOSQL |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
mariadb: | ||
image: 'mariadb:11' | ||
ports: | ||
- '${FORWARD_DB_PORT:-3306}:3306' | ||
environment: | ||
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}' | ||
MYSQL_ROOT_HOST: "%" | ||
MYSQL_DATABASE: '${DB_DATABASE}' | ||
MYSQL_USER: '${DB_USERNAME}' | ||
MYSQL_PASSWORD: '${DB_PASSWORD}' | ||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' | ||
volumes: | ||
- 'sail-mariadb:/var/lib/mysql' | ||
- './vendor/laravel/sail/database/mariadb/create-testing-database.sh:/docker-entrypoint-initdb.d/10-create-testing-database.sh' | ||
networks: | ||
- sail | ||
healthcheck: | ||
test: ["CMD", "mariadb-admin", "ping", "-p${DB_PASSWORD}"] | ||
retries: 3 | ||
timeout: 5s |