docker-compose.yml 438 B

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