61 lines
813 B
YAML
61 lines
813 B
YAML
|
version: '2'
|
||
|
|
||
|
services:
|
||
|
|
||
|
sut:
|
||
|
build: ./tests/
|
||
|
depends_on:
|
||
|
- voting-app
|
||
|
- result-app
|
||
|
- worker
|
||
|
networks:
|
||
|
- front-tier
|
||
|
|
||
|
voting-app:
|
||
|
build: ../voting-app/
|
||
|
ports: ["80"]
|
||
|
depends_on:
|
||
|
- redis
|
||
|
- db
|
||
|
networks:
|
||
|
- front-tier
|
||
|
- back-tier
|
||
|
|
||
|
result-app:
|
||
|
build: .
|
||
|
ports: ["80"]
|
||
|
depends_on:
|
||
|
- redis
|
||
|
- db
|
||
|
networks:
|
||
|
- front-tier
|
||
|
- back-tier
|
||
|
|
||
|
worker:
|
||
|
build: ../worker/
|
||
|
depends_on:
|
||
|
- redis
|
||
|
- db
|
||
|
networks:
|
||
|
- back-tier
|
||
|
|
||
|
redis:
|
||
|
image: redis:alpine
|
||
|
ports: ["6379"]
|
||
|
networks:
|
||
|
- back-tier
|
||
|
|
||
|
db:
|
||
|
image: postgres:9.4
|
||
|
volumes:
|
||
|
- "db-data:/var/lib/postgresql/data"
|
||
|
networks:
|
||
|
- back-tier
|
||
|
|
||
|
volumes:
|
||
|
db-data:
|
||
|
|
||
|
networks:
|
||
|
front-tier:
|
||
|
back-tier:
|