revers the dependancies between php and the db

to prevent running all the db engines when php is running
This commit is contained in:
Mahmoud Zalt 2016-05-07 05:29:48 +03:00
parent 26229e150d
commit 5d84c6481f

View File

@ -25,9 +25,6 @@ services:
- ./logs/php/:/usr/local/var/log - ./logs/php/:/usr/local/var/log
expose: expose:
- "9000" - "9000"
links:
- mysql
- postgres
### DATA Container ########################################## ### DATA Container ##########################################
@ -53,6 +50,8 @@ services:
MYSQL_USER: homestead MYSQL_USER: homestead
MYSQL_PASSWORD: secret MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
links:
- php
### PostgreSQL Container #################################### ### PostgreSQL Container ####################################
@ -67,6 +66,8 @@ services:
POSTGRES_DB: homestead POSTGRES_DB: homestead
POSTGRES_USER: homestead POSTGRES_USER: homestead
POSTGRES_PASSWORD: secret POSTGRES_PASSWORD: secret
links:
- php
### Redis Container ######################################### ### Redis Container #########################################