From 5d84c6481f65121ccf2a458adf21b45cd8ebbaed Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Sat, 7 May 2016 05:29:48 +0300 Subject: [PATCH] revers the dependancies between php and the db to prevent running all the db engines when php is running --- docker-compose.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8b9dbab3..e2eb14e2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,9 +25,6 @@ services: - ./logs/php/:/usr/local/var/log expose: - "9000" - links: - - mysql - - postgres ### DATA Container ########################################## @@ -53,6 +50,8 @@ services: MYSQL_USER: homestead MYSQL_PASSWORD: secret MYSQL_ROOT_PASSWORD: root + links: + - php ### PostgreSQL Container #################################### @@ -67,6 +66,8 @@ services: POSTGRES_DB: homestead POSTGRES_USER: homestead POSTGRES_PASSWORD: secret + links: + - php ### Redis Container #########################################