2018-07-30 18:20:25 +02:00
|
|
|
version: ':8080'
|
|
|
|
|
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
|
|
|
db:
|
|
|
|
image: postgres:9.4
|
2020-02-19 20:44:32 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "postgres"
|
|
|
|
POSTGRES_PASSWORD: "postgres"
|
2018-07-30 18:20:25 +02:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
vote:
|
|
|
|
image: dockersamples/examplevotingapp_vote:before
|
|
|
|
ports:
|
|
|
|
- "5000:80"
|
|
|
|
deploy:
|
|
|
|
replicas: 2
|
|
|
|
result:
|
|
|
|
image: dockersamples/examplevotingapp_result:before
|
|
|
|
ports:
|
|
|
|
- "5001:80"
|
|
|
|
worker:
|
|
|
|
image: dockersamples/examplevotingapp_worker
|
|
|
|
visualizer:
|
|
|
|
image: dockersamples/visualizer:stable
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|