From d5f180db4fc82112e2542b0670ea7546e5529485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Fri, 8 Mar 2024 15:10:20 +0100 Subject: [PATCH] Add debugging --- dev/xdebug.ini | 5 +++-- docker-compose.yml | 4 +++- mariadb-config.cnf | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 mariadb-config.cnf diff --git a/dev/xdebug.ini b/dev/xdebug.ini index e29c8bd46..30835305f 100644 --- a/dev/xdebug.ini +++ b/dev/xdebug.ini @@ -1,6 +1,7 @@ zend_extension=xdebug [xdebug] -xdebug.mode=develop,debug +xdebug.mode=develop,debug,profile xdebug.client_host=host.docker.internal -xdebug.start_with_request=yes \ No newline at end of file +xdebug.start_with_request=yes +xdebug.output_dir=/tmp/xdebug \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 5155ba1ad..596abfab8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -50,7 +50,7 @@ services: build: context: . args: - DEBUG: false + DEBUG: true TESTING: true VERSION: dev ports: @@ -84,6 +84,7 @@ services: - ./public:/usr/src/code/public - ./src:/usr/src/code/src - ./dev:/usr/src/code/dev + - ./temp-debug:/tmp/xdebug depends_on: - mariadb - redis @@ -959,6 +960,7 @@ services: - database-proxy volumes: - appwrite-mariadb:/var/lib/mysql:rw + - ./mariadb-config.cnf:/etc/mysql/conf.d/mariadb-config.cnf ports: - "3306:3306" environment: diff --git a/mariadb-config.cnf b/mariadb-config.cnf new file mode 100644 index 000000000..601dccc28 --- /dev/null +++ b/mariadb-config.cnf @@ -0,0 +1,2 @@ +[mysqld] +max_connections=1024 \ No newline at end of file