docker-compose.yml 411 B

12345678910111213141516171819202122232425262728
  1. version: "2"
  2. services:
  3. voting-app:
  4. build: ./voting-app
  5. volumes:
  6. - ./voting-app:/app
  7. ports:
  8. - "5000:80"
  9. redis:
  10. image: redis:alpine
  11. ports: ["6379"]
  12. worker:
  13. build: ./worker
  14. db:
  15. image: postgres:9.4
  16. result-app:
  17. build: ./result-app
  18. command: nodemon --debug server.js
  19. volumes:
  20. - ./result-app:/app
  21. ports:
  22. - "5001:80"
  23. - "5858:5858"