docker-compose.yml 341 B

12345678910111213141516171819202122232425
  1. voting-app:
  2. build: ./voting-app/.
  3. volumes:
  4. - ./voting-app:/app
  5. ports:
  6. - "5000:80"
  7. redis:
  8. image: redis
  9. ports: ["6379"]
  10. worker:
  11. build: ./worker
  12. db:
  13. image: postgres:9.4
  14. volumes:
  15. - "myvolume:/var/lib/postgresql/data"
  16. result-app:
  17. build: ./result-app/.
  18. volumes:
  19. - ./result-app:/app
  20. ports:
  21. - "5001:80"