From 7f4e411d3d4ab838352b1e94158da3eeb55fac71 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Sat, 14 May 2016 04:20:20 +0300 Subject: [PATCH] link containers to PHP --- docker-compose.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c47c6196..af36bcef 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -91,6 +91,19 @@ services: - data ports: - "6379:6379" + links: + - php + +### Memcached Container ##################################### + + memcached: + build: ./memcached + volumes_from: + - data + ports: + - "11211:11211" + links: + - php ### Beanstalkd Container #################################### @@ -99,6 +112,8 @@ services: ports: - "11300:11300" privileged: true + links: + - php ### Beanstalkd-Console Container ############################ @@ -109,13 +124,4 @@ services: links: - beanstalkd -### Memcached Container ######################################### - - memcached: - build: ./memcached - volumes_from: - - data - ports: - - "11211:11211" - ### Add more Containers below ###############################