refactored all to dev

This commit is contained in:
2025-11-26 21:48:53 -08:00
parent a8066686bc
commit f8ca733307
170 changed files with 12 additions and 29 deletions
+40
View File
@@ -0,0 +1,40 @@
# MariaDB
Dockerhub: https://hub.docker.com/_/mariadb
Project: https://mariadb.org/
Proxy Port: 3306
It will be quite uncommon to just use this compose file, it's likely you are extending this from another project.
That's the main context of this container.
## Sample
### Run multiple databases
initdb/init.sql
```sql
-- Create BookStack database and user
CREATE DATABASE IF NOT EXISTS bookstack_db;
CREATE USER IF NOT EXISTS 'bookstack_user'@'%' IDENTIFIED BY 'bookstack_password';
GRANT ALL PRIVILEGES ON bookstack_db.* TO 'bookstack_user'@'%';
-- Create WordPress database and user
CREATE DATABASE IF NOT EXISTS wordpress_db;
CREATE USER IF NOT EXISTS 'wordpress_user'@'%' IDENTIFIED BY 'wordpress_password';
GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wordpress_user'@'%';
FLUSH PRIVILEGES;
```
### Change command
```yaml
# heimdall, pwigo
command: --max_allowed_packet=32505856
# monica
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
# nextcloud
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
```
+19
View File
@@ -0,0 +1,19 @@
services:
mariadb:
image: ${MARIADB_IMAGE:-mariadb:latest}
restart: unless-stopped
command: >
--transaction-isolation=READ-COMMITTED
--binlog-format=ROW
--innodb-file-per-table=1
--skip-innodb-read-only-compressed
environment:
- MARIADB_DATABASE=${MARIADB_DATABASE:-mydb}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD:-ChangeThisPassword}
- MARIADB_USER=${MARIADB_USER:-dbuser}
- MARIADB_PASSWORD=${MARIADB_PASSWORD:-AlsoChangeThisPassword}
volumes:
- mariadb-data:/var/lib/mysql
volumes:
mariadb-data:
+6
View File
@@ -0,0 +1,6 @@
# MariaDB
MARIADB_IMAGE=mariadb:latest
MARIADB_MARIADB_DATABASE=mydb
MARIADB_MARIADB_ROOT_PASSWORD=ChangeThisPassword0123456789ABCD
MARIADB_MARIADB_PASSWORD=AlsoChangeThisPassword0123456789
MARIADB_MARIADB_USER=dbuser