From f5b73d66ce5a85782d53c4bde760b553e8571d4b Mon Sep 17 00:00:00 2001 From: edwastone Date: Tue, 6 Sep 2016 09:55:22 +0700 Subject: [PATCH] Incorporate kitgary's fix to docker-compose linking https://github.com/dwmkerr/node-docker-microservice/issues/7 --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index a5cfe84..28ab017 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,11 +2,14 @@ version: '2' services: users-service: build: ./users-service + container_name: users_service ports: - "8123:8123" + links: + - db:db depends_on: - db environment: - DATABASE_HOST=db db: - build: ./test-database \ No newline at end of file + build: ./test-database