arshad75

docker-compose.yml

Apr 15th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. version: "3"
  2.  
  3. services:
  4. vote:
  5. build: ./vote
  6. command: python app.py
  7. volumes:
  8. - ./vote:/app
  9. ports:
  10. - "5000:80"
  11. networks:
  12. - front-tier
  13. - back-tier
  14.  
  15. result:
  16. build: ./result
  17. command: nodemon server.js
  18. volumes:
  19. - ./result:/app
  20. ports:
  21. - "5001:80"
  22. - "5858:5858"
  23. networks:
  24. - front-tier
  25. - back-tier
  26.  
  27. worker:
  28. build:
  29. context: ./worker
  30. depends_on:
  31. - "redis"
  32. networks:
  33. - back-tier
  34.  
  35. redis:
  36. image: redis:alpine
  37. container_name: redis
  38. ports: ["6379"]
  39. networks:
  40. - back-tier
  41.  
  42. db:
  43. image: postgres:9.4
  44. container_name: db
  45. volumes:
  46. - "db-data:/var/lib/postgresql/data"
  47. networks:
  48. - back-tier
  49.  
  50. volumes:
  51. db-data:
  52.  
  53. networks:
  54. front-tier:
  55. back-tier:
Add Comment
Please, Sign In to add comment