Advertisement
Guest User

Untitled

a guest
Feb 26th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. #
  2. # Notes:
  3. #
  4. # The following variables must be set in the shell that docker-compose
  5. # is executed from:
  6. #
  7. # POSTGRES_USER, POSTGRES_PASSWORD, SLACK_API_TOKEN
  8. #
  9. # In addition, a TAG variable may be defined. If present, it will be appended
  10. # to the Docker image names that are used for Cog and Relay. It should begin
  11. # with a colon (:), i.e. TAG=:0.2.1-dev
  12. #
  13. # $ docker-compose up
  14. #
  15.  
  16. postgres:
  17. image: postgres:9.5
  18. environment:
  19. - POSTGRES_USER=postgres
  20. - POSTGRES_PASSWORD=passw0rd
  21. cog:
  22. image: operable/cog${TAG}
  23. environment:
  24. - COG_MQTT_HOST=0.0.0.0
  25. - DATABASE_URL=ecto://postgres:passw0rd@postgres:5432/cog
  26. - COG_ADAPTER=hipchat
  27. - HIPCHAT_API_TOKEN=tokengoeshere
  28. - HIPCHAT_MENTION_NAME=blue
  29. - HIPCHAT_XMPP_NICKNAME=Atlas
  30. - HIPCHAT_XMPP_SERVER=chat.hipchat.com
  31. - HIPCHAT_XMPP_ROOMS=123456_glados101@chat.hipchat.com
  32. - HIPCHAT_XMPP_PORT=5222
  33. - HIPCHAT_XMPP_JID=123456_1234567@chat.hipchat.com
  34. - HIPCHAT_XMPP_PASSWORD=password
  35. links:
  36. - postgres
  37. ports:
  38. - 80:4000
  39. - 1883
  40. entrypoint: scripts/wait-for-it.sh -s -t 0 -h postgres -p 5432 -- elixir --no-halt --name cog@127.0.0.1 --no-halt -S mix do ecto.create, ecto.migrate, phoenix.server
  41. relay:
  42. image: operable/relay${TAG}
  43. environment:
  44. - COG_MQTT_HOST=cog
  45. links:
  46. - cog
  47. entrypoint: scripts/wait-for-it.sh -s -t 0 -h cog -p 1883 -- elixir --no-halt --name relay@127.0.0.1 -S mix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement