Merge pull request from cytopia/DVL-004

DVL-004 use docker-compose updates
This commit is contained in:
cytopia 2017-04-20 18:55:13 +02:00 committed by GitHub
commit 260eed9293
2 changed files with 19 additions and 23 deletions
.devilbox/www/htdocs
docker-compose.yml

@ -376,9 +376,6 @@
<td>./etc</td>
</tr>
<tr>
<th>MySQL socket</th>
<td>./run/mysql/mysqld.sock</td>
</tr> <tr>
<th>Log directory</th>
<td>./log</td>
</tr>
@ -403,10 +400,6 @@
<th>MySQL datadir</th>
<td><?php echo $Docker->getEnv('HOST_PATH_TO_MYSQL_DATADIR');?></td>
</tr>
<tr>
<th>MySQL socket</th>
<td>./run/mysql/mysqld.sock</td>
</tr>
<tr>
<th>Log directory</th>
<td>./log</td>

@ -95,11 +95,6 @@ services:
depends_on:
- php
links:
# ---- Format: ----
# SERVICE [ : ALIAS]
- "php:php-fpm"
# ----------------------------------------
# PHP-FPM
@ -184,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
@ -203,13 +198,6 @@ services:
- postgres
links:
# ---- Format: ----
# SERVICE [ : ALIAS]
- "mysql:mariadb"
- "postgres:postgresql"
# ----------------------------------------
# DATABASE
# ----------------------------------------
@ -253,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
@ -296,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
################################################################################