Initial Project Commit

This commit is contained in:
Orlando M Guerreiro 2025-05-22 19:23:40 +01:00
commit a6dea9c888
2148 changed files with 173870 additions and 0 deletions

View file

@ -0,0 +1,77 @@
# ###################################################### #
# MariaDB #
# #
# Database container with MariaDB #
# ###################################################### #
Project Structure:
==================
docker-nginx/
├── docker-compose.yml
├── mariadb_data/
│ ├── # Volume for database files
Build & Run:
============
For a first startup:
> docker-compose up --build
For a startup:
> docker-compose up -d
Users:
======
User: resDbUser
Pwd : res#Db!Pwd%765
Config:
=======
User Root Password: root#unl!853
Port: 3406
Create database
===============
#2 Create database
> docker exec -it mariadb mariadb -uroot -proot#unl!853 -e "CREATE DATABASE IF NOT EXISTS resilient_resilient;"
<mariadb>, its the docker container name
<mariadb>, THE SECOND <mariadb> is the equivalent to mysql command, but for mariadb
<root#unl!853>, the root password
<resilient_resilient>, its the intended database name
#2 Verify
> docker exec -it mariadb mariadb -uroot -proot#unl!853 -e "SHOW DATABASES;"
<mariadb>, its the docker container name
<mariadb>, THE SECOND <mariadb> is the equivalent to mysql command, but for mariadb
<root#unl!853>, the root password
Restore from mysqldump
======================
#1 Copy dump file into the ./dumps directory
#2 Import the dump into the database, without copy the dump into container
> docker exec -i mariadb mariadb -uroot -proot#unl!853 resilient_resilient < ./dumps/resilient_dump.sql
<mariadb>, its the docker container name
<mariadb>, THE SECOND <mariadb> is the equivalent to mysql command, but for mariadb
<root#unl!853>, the root password
<resilient_resilient>, its the intended database name
<resilient_dump.sql>, the dump file name
#3 Verify (SHOW TABLES;)
> docker exec -it mariadb mariadb -uresDbUser -pres#Db!Pwd%765 resilient_resilient -e "SHOW TABLES;"
<mariadb>, its the docker container name
<mariadb>, THE SECOND <mariadb> is the equivalent to mysql command, but for mariadb
<resDbUser>, User to use. NOTE: Testing the functional user (not root).
<res#Db!Pwd%765>, The user password. NOTE: Testing the functional user (not root).
<resilient_resilient>, its the intended database name

View file

@ -0,0 +1,2 @@
[mysqld]
port = 3306

View file

@ -0,0 +1,18 @@
services:
mariadb:
image: mariadb:11.7.2
container_name: mariadb
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root#unl!853
MYSQL_DATABASE: resilient_resilient
MYSQL_USER: resDbUser
MYSQL_PASSWORD: res#Db!Pwd%765
ports:
- "3306:3306"
volumes:
- ./mariadb_data:/var/lib/mysql
- ./config/my.cnf:/etc/mysql/conf.d/custom.cnf:ro # ':ro' means 'readonly', this is mandatory for MariaDB, or it will IGNORE the file
volumes:
mariadb_data:

View file

@ -0,0 +1,2 @@
File to force directory commit into SVN.
The content is SVN:IGNORED

View file

@ -0,0 +1,2 @@
File to force directory commit into SVN.
The content is SVN:IGNORED

View file

@ -0,0 +1,6 @@
[mariadb-client]
port=3306
socket=/run/mysqld/mysqld.sock
user=healthcheck
password={lW`(KQ*F1l<VEqGq[hetMfeGkTQu2;)

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,148 @@
7,3
5,3
4,3
1,45
3,44
2,44
1,44
3,43
2,43
1,43
3,42
2,42
1,42
3,41
2,41
1,41
3,40
2,40
1,40
3,39
2,39
1,39
3,38
2,38
1,38
3,37
2,37
1,37
3,36
2,36
1,36
3,35
2,35
1,35
3,34
2,34
1,34
3,33
2,33
1,33
3,32
2,32
1,32
3,31
2,31
1,31
3,30
2,30
1,30
3,29
2,29
1,29
3,28
2,28
1,28
3,27
2,27
1,27
3,26
2,26
1,26
3,25
2,25
1,25
3,24
2,24
1,24
3,23
2,23
1,23
3,22
2,22
1,22
3,21
2,21
1,21
3,20
2,20
1,20
3,19
2,19
1,19
3,18
2,18
1,18
3,17
2,17
1,17
3,16
2,16
1,16
3,15
2,15
1,15
3,14
2,14
1,14
3,13
2,13
1,13
3,12
2,12
1,12
3,11
2,11
1,11
3,10
2,10
1,10
3,9
2,9
1,9
3,8
2,8
1,8
3,7
2,7
1,7
3,6
2,6
1,6
3,5
2,5
1,5
3,4
2,4
1,4
3,3
3,0
2,3
2,0
1,3
1,0
0,6
0,0
0,47
0,46
0,49
0,48
0,45
0,12
0,10
0,8
0,11
0,5
0,7
0,4
0,3

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1 @@
11.7.2-MariaDB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,2 @@
default-character-set=utf8mb4
default-collation=utf8mb4_uca1400_ai_ci

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more