diff --git a/dev/xdebug.ini b/dev/xdebug.ini index e29c8bd46e..30835305f1 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 5155ba1ad5..596abfab8e 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 0000000000..601dccc285 --- /dev/null +++ b/mariadb-config.cnf @@ -0,0 +1,2 @@ +[mysqld] +max_connections=1024 \ No newline at end of file