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