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:
parent
be0e4e2ff2
commit
3978756bb2
@ -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:
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM mhart/alpine-node
|
||||
FROM node:5.11.0-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user