Advertisement
Guest User

Untitled

a guest
Nov 12th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. version: '2.1'
  2.  
  3. services:
  4. app:
  5. build:
  6. context: .
  7. args:
  8. VERSION: ${VERSION}
  9. BUILD: ${BUILD}
  10. env_file:
  11. - app.env
  12. environment:
  13. SERVICE_PUBLIC_NAME: ${NAME}
  14. ports:
  15. - '3000:3000'
  16. depends_on:
  17. redis:
  18. condition: service_started
  19. db:
  20. condition: service_started
  21. queue:
  22. condition: service_healthy
  23. redis:
  24. image: redis
  25. db:
  26. image: postgres
  27. networks:
  28. - internal
  29. expose:
  30. - 3306
  31. environment:
  32. POSTGRES_USER: root
  33. POSTGRES_PASSWORD: root
  34. POSTGRES_DB: root
  35. queue:
  36. image: rabbitmq
  37. hostname: 'queue'
  38. healthcheck:
  39. test: rabbitmqctl status
  40. interval: 15s
  41. timeout: 10s
  42.  
  43. networks:
  44. internal:
  45. driver: bridge
  46. internal: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement