Skip to content
Snippets Groups Projects
Commit f456ce6a authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

set container defaults to PHP 8.4 and mariadb-latest

parent 339a57ed
No related branches found
No related tags found
1 merge request!30v1.28
......@@ -21,7 +21,7 @@ APP_APT_PACKAGES="git unzip zip"
# APP_APACHE_MODULES="headers rewrite"
APP_APACHE_MODULES="headers"
APP_PHP_VERSION=8.3
APP_PHP_VERSION=8.4
# APP_PHP_MODULES="curl pdo_mysql mbstring xml zip xdebug"
APP_PHP_MODULES="curl mbstring xml zip xdebug"
......@@ -40,7 +40,7 @@ DB_ADD=false
DB_PORT=13306
# ----- database settings
MYSQL_IMAGE=mariadb:10.5.9
MYSQL_IMAGE=mariadb:latest
MYSQL_RANDOM_ROOT_PASSWORD=0
MYSQL_ALLOW_EMPTY_PASSWORD=0
MYSQL_ROOT_PASS=12345678
......
......@@ -63,9 +63,21 @@ services:
volumes:
- ./containers/db-server/mariadb/my.cnf:/etc/mysql/conf.d/my.cnf
- ./containers/db-server/mariadb/dot_my.cnf:/root/.my.cnf
# healthcheck:
# test: mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD
# interval: 5s
# retries: 5
# see https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/installing-mariadb/binary-packages/automated-mariadb-deployment-and-administration/docker-and-mariadb/using-healthcheck-sh
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD
interval: 5s
retries: 5
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
# command: ['mariadbd', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
networks:
- {{APP_NAME}}-network
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment