docker-compose.yml 510 B

123456789101112131415161718192021222324252627282930313233343536
  1. version: "2"
  2. services:
  3. voting-app:
  4. build: ./voting-app/.
  5. volumes:
  6. - ./voting-app:/app
  7. ports:
  8. - "5000:80"
  9. links:
  10. - redis
  11. redis:
  12. image: redis
  13. ports: ["6379"]
  14. worker:
  15. build: ./worker
  16. links:
  17. - db
  18. - redis
  19. db:
  20. image: postgres:9.4
  21. volumes:
  22. - "myvolume:/var/lib/postgresql/data"
  23. result-app:
  24. build: ./result-app/.
  25. volumes:
  26. - ./result-app:/app
  27. ports:
  28. - "5001:80"
  29. links:
  30. - db
  31. volumes:
  32. myvolume: