diff --git a/.devilbox/www/htdocs/index.php b/.devilbox/www/htdocs/index.php
index 7b3c5c5c..6d12d0c7 100644
--- a/.devilbox/www/htdocs/index.php
+++ b/.devilbox/www/htdocs/index.php
@@ -376,9 +376,6 @@
./etc |
- MySQL socket |
- ./run/mysql/mysqld.sock |
-
Log directory |
./log |
@@ -403,10 +400,6 @@
MySQL datadir |
getEnv('HOST_PATH_TO_MYSQL_DATADIR');?> |
-
- MySQL socket |
- ./run/mysql/mysqld.sock |
-
Log directory |
./log |
diff --git a/docker-compose.yml b/docker-compose.yml
index 877692bb..eda61a19 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -179,10 +179,10 @@ services:
- ${DEVILBOX_PATH}/log/${PHP_SERVER}:/var/log/php-fpm
# Mount MySQL Socket directory
- - ${DEVILBOX_PATH}/run/mysql:/tmp/mysql
+ - mysql_socket_volume:/tmp/mysql
# Mount Mail directory
- - ${DEVILBOX_PATH}/run/mail:/var/mail
+ #- ${DEVILBOX_PATH}/run/mail:/var/mail
# Mount devilbox user-defined *.ini files in order
# to overwrite the default PHP configuration
@@ -241,7 +241,7 @@ services:
- ${DEVILBOX_PATH}/log/${MYSQL_SERVER}:/var/log/mysql
# Mount MySQL Socket directory
- - ${DEVILBOX_PATH}/run/mysql:/tmp/mysql
+ - mysql_socket_volume:/tmp/mysql
# Mount devilbox user-defined cnf files in order
# to overwrite the MySQL server configuration
@@ -284,12 +284,27 @@ services:
- ${DEVILBOX_PATH}/log/postgres-${POSTGRES_SERVER}:/var/log/postgresql
# Mount PostgreSQL Socket directory
- - ${DEVILBOX_PATH}/run/postgres:/var/run/postgresql
+ - pgsql_socket_volume:/var/run/postgresql
# Mount PostgreSQL Data directory
- ${HOST_PATH_TO_POSTGRES_DATADIR}:/var/lib/postgresql/data/pgdata
+################################################################################
+# VOLUMES
+################################################################################
+volumes:
+ # Create volume for mysql socket.
+ # This removes the need to mount the socket to the host
+ # but be able to mount it to different containers (from another container)
+ mysql_socket_volume:
+
+ # Create volume for postgresql socket.
+ # This removes the need to mount the socket to the host
+ # but be able to mount it to different containers (from another container)
+ pgsql_socket_volume:
+
+
################################################################################
# NETWORK
################################################################################