From 3978756bb2b6d964c80c9961933818d9b0ef2687 Mon Sep 17 00:00:00 2001 From: Mano Marks Date: Tue, 3 May 2016 19:35:26 -0700 Subject: [PATCH] Moving result app to be based on node:5.11.0-slim, adding back links in docker-compose.yml, and removing explicit container names --- docker-compose.yml | 9 +++++++-- result-app/Dockerfile | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 06ec77b..440ee47 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,8 @@ services: - ./voting-app:/app ports: - "5000:80" + links: + - redis networks: - front-tier - back-tier @@ -17,25 +19,28 @@ services: - ./result-app:/app ports: - "5001:80" + links: + - db networks: - front-tier - back-tier worker: build: ./worker + links: + - db + - redis networks: - back-tier redis: image: redis:alpine - container_name: redis ports: ["6379"] networks: - back-tier db: image: postgres:9.4 - container_name: db volumes: - "db-data:/var/lib/postgresql/data" networks: diff --git a/result-app/Dockerfile b/result-app/Dockerfile index a93ab6e..3045ede 100644 --- a/result-app/Dockerfile +++ b/result-app/Dockerfile @@ -1,4 +1,4 @@ -FROM mhart/alpine-node +FROM node:5.11.0-slim WORKDIR /app