Add Networks!
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
This commit is contained in:
parent
878cdeb583
commit
bb24708128
@ -1,4 +1,5 @@
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
voting-app:
|
||||
build: ./voting-app/.
|
||||
@ -8,21 +9,9 @@ services:
|
||||
- "5000:80"
|
||||
links:
|
||||
- redis
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
ports: ["6379"]
|
||||
|
||||
worker:
|
||||
build: ./worker
|
||||
links:
|
||||
- db
|
||||
- redis
|
||||
|
||||
db:
|
||||
image: postgres:9.4
|
||||
volumes:
|
||||
- "myvolume:/var/lib/postgresql/data"
|
||||
networks:
|
||||
- front-tier
|
||||
- back-tier
|
||||
|
||||
result-app:
|
||||
build: ./result-app/.
|
||||
@ -32,5 +21,36 @@ services:
|
||||
- "5001:80"
|
||||
links:
|
||||
- db
|
||||
networks:
|
||||
- front-tier
|
||||
- back-tier
|
||||
|
||||
worker:
|
||||
build: ./worker
|
||||
links:
|
||||
- db
|
||||
- redis
|
||||
networks:
|
||||
- back-tier
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
ports: ["6379"]
|
||||
networks:
|
||||
- back-tier
|
||||
|
||||
db:
|
||||
image: postgres:9.4
|
||||
volumes:
|
||||
myvolume:
|
||||
- "db-data:/var/lib/postgresql/data"
|
||||
networks:
|
||||
- back-tier
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
|
||||
networks:
|
||||
front-tier:
|
||||
back-tier:
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user