Guest User

Untitled

a guest
Jan 2nd, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. version: '3.4'
  2.  
  3. networks:
  4. customqueue:
  5.  
  6. services:
  7. feed.api:
  8. image: feed.api:${TAG:-latest}
  9. build:
  10. context: .
  11. dockerfile: src/Services/Feed/Feed.Api/Dockerfile
  12. depends_on:
  13. - sqldata
  14. - rabbitmq
  15. ports:
  16. - "8000:80"
  17. networks:
  18. - customqueue
  19.  
  20. like.api:
  21. image: like.api:${TAG:-latest}
  22. build:
  23. context: .
  24. dockerfile: src/Services/Like/Like.Api/Dockerfile
  25. depends_on:
  26. - rabbitmq
  27. ports:
  28. - "7000:70"
  29. networks:
  30. - customqueue
  31.  
  32. rabbitmq:
  33. image: rabbitmq:3-management-alpine
  34. environment:
  35. RABBITMQ_DEFAULT_USER: "admin"
  36. RABBITMQ_DEFAULT_PASS: "password"
  37. ports:
  38. - "15672:15672"
  39. - "5672:5672"
  40. networks:
  41. - customqueue
  42.  
  43. var factory = new ConnectionFactory()
  44. {
  45. HostName = "rabbitmq",
  46. UserName = "admin",
  47. Password = "password",
  48. Port = 15672,
  49. Protocol = Protocols.DefaultProtocol,
  50. RequestedConnectionTimeout = 2000,
  51. VirtualHost = "/",
  52. };
Add Comment
Please, Sign In to add comment