diff --git a/.docker/php-config/11-mysql-socket.ini b/.docker/php-config/11-mysql-socket.ini new file mode 100644 index 000000000..b472c2a1f --- /dev/null +++ b/.docker/php-config/11-mysql-socket.ini @@ -0,0 +1 @@ +; pdo_mysql.default_socket = /var/run/mysqld/mysql.sock' diff --git a/compose.yaml b/compose.yaml index 84a2849b6..8b78510b9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -8,6 +8,15 @@ services: context: .docker/ volumes: - ".:/var/www/html:rw,z" + - "mysql_socket:/var/run/mysqld/mysqld.sock:rw" # memcached: # image: memcached:1.6.13-alpine3.15 + mysql: + image: mysql:8.3 + profiles: + - full + volumes: + - "mysql_socket:/var/run/mysqld/mysqld.sock:rw" +volumes: + mysql_socket: