2016-06-16 04:14:55 +02:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
sut:
|
|
|
|
build: ./tests/
|
|
|
|
depends_on:
|
2016-06-18 18:14:28 +02:00
|
|
|
- vote
|
|
|
|
- result
|
2016-06-16 04:14:55 +02:00
|
|
|
- worker
|
|
|
|
networks:
|
|
|
|
- front-tier
|
|
|
|
|
2016-06-18 18:14:28 +02:00
|
|
|
vote:
|
|
|
|
build: ../vote/
|
2016-06-16 04:14:55 +02:00
|
|
|
ports: ["80"]
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- db
|
|
|
|
networks:
|
|
|
|
- front-tier
|
|
|
|
- back-tier
|
|
|
|
|
2016-06-18 18:14:28 +02:00
|
|
|
result:
|
2016-06-16 04:14:55 +02:00
|
|
|
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
|
2020-02-19 20:54:19 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "postgres"
|
|
|
|
POSTGRES_PASSWORD: "postgres"
|
2016-06-16 04:14:55 +02:00
|
|
|
volumes:
|
|
|
|
- "db-data:/var/lib/postgresql/data"
|
|
|
|
networks:
|
|
|
|
- back-tier
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
front-tier:
|
|
|
|
back-tier:
|