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 - ./voting-app:/app
ports: ports:
- "5000:80" - "5000:80"
links:
- redis
networks: networks:
- front-tier - front-tier
- back-tier - back-tier
@ -17,25 +19,28 @@ services:
- ./result-app:/app - ./result-app:/app
ports: ports:
- "5001:80" - "5001:80"
links:
- db
networks: networks:
- front-tier - front-tier
- back-tier - back-tier
worker: worker:
build: ./worker build: ./worker
links:
- db
- redis
networks: networks:
- back-tier - back-tier
redis: redis:
image: redis:alpine image: redis:alpine
container_name: redis
ports: ["6379"] ports: ["6379"]
networks: networks:
- back-tier - back-tier
db: db:
image: postgres:9.4 image: postgres:9.4
container_name: db
volumes: volumes:
- "db-data:/var/lib/postgresql/data" - "db-data:/var/lib/postgresql/data"
networks: networks:

View File

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