Docker file can now build and run mariadb without sudo

This commit is contained in:
Mathew 2025-03-12 17:56:01 +05:30
parent 5dba7891f6
commit 6d697f9a45
7 changed files with 11 additions and 20 deletions

View File

@ -34,6 +34,16 @@ services:
networks:
- asterisk-net
# *** only needed if your not running docker as a sudo user necessary for mariadb container db access
user: "999:999" # Ensures the container runs as the mysql user, matching volume ownership
command: "--innodb-buffer-pool-size=256M"
healthcheck: # Optional: Ensure MariaDB is healthy before Asterisk connects
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-prootpassword"]
interval: 10s
timeout: 5s
retries: 5
# ***
networks:
asterisk-net:
driver: bridge

21
MySQL_conf_pbx/test1/mariadb_data/ib_buffer_pool Executable file → Normal file
View File

@ -1,30 +1,11 @@
11,4
11,3
11,2
11,1
11,0
10,3
10,2
10,1
10,0
9,4
9,3
9,2
9,1
9,0
1,2
3,2
8,5
8,4
8,3
8,2
8,1
8,0
0,9
2,2
7,3
5,3
4,3
7,3
1,45
3,44
2,44