26 lines
341 B
YAML
26 lines
341 B
YAML
|
voting-app:
|
||
|
build: ./voting-app/.
|
||
|
volumes:
|
||
|
- ./voting-app:/app
|
||
|
ports:
|
||
|
- "5000:80"
|
||
|
|
||
|
redis:
|
||
|
image: redis
|
||
|
ports: ["6379"]
|
||
|
|
||
|
worker:
|
||
|
build: ./worker
|
||
|
|
||
|
db:
|
||
|
image: postgres:9.4
|
||
|
volumes:
|
||
|
- "myvolume:/var/lib/postgresql/data"
|
||
|
|
||
|
result-app:
|
||
|
build: ./result-app/.
|
||
|
volumes:
|
||
|
- ./result-app:/app
|
||
|
ports:
|
||
|
- "5001:80"
|