Moving result app to be based on node:5.11.0-slim, adding back links in docker-compose.yml, and removing explicit container names

This commit is contained in:
Mano Marks 2016-05-03 19:35:26 -07:00
parent be0e4e2ff2
commit 3978756bb2
2 changed files with 8 additions and 3 deletions

View File

@ -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:

View File

@ -1,4 +1,4 @@
FROM mhart/alpine-node
FROM node:5.11.0-slim
WORKDIR /app