Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Notes:
- #
- # The following variables must be set in the shell that docker-compose
- # is executed from:
- #
- # POSTGRES_USER, POSTGRES_PASSWORD, SLACK_API_TOKEN
- #
- # In addition, a TAG variable may be defined. If present, it will be appended
- # to the Docker image names that are used for Cog and Relay. It should begin
- # with a colon (:), i.e. TAG=:0.2.1-dev
- #
- # $ docker-compose up
- #
- postgres:
- image: postgres:9.5
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=passw0rd
- cog:
- image: operable/cog${TAG}
- environment:
- - COG_MQTT_HOST=0.0.0.0
- - DATABASE_URL=ecto://postgres:passw0rd@postgres:5432/cog
- - COG_ADAPTER=hipchat
- - HIPCHAT_API_TOKEN=tokengoeshere
- - HIPCHAT_MENTION_NAME=blue
- - HIPCHAT_XMPP_NICKNAME=Atlas
- - HIPCHAT_XMPP_SERVER=chat.hipchat.com
- - HIPCHAT_XMPP_ROOMS=123456_glados101@chat.hipchat.com
- - HIPCHAT_XMPP_PORT=5222
- - HIPCHAT_XMPP_JID=123456_1234567@chat.hipchat.com
- - HIPCHAT_XMPP_PASSWORD=password
- links:
- - postgres
- ports:
- - 80:4000
- - 1883
- 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
- relay:
- image: operable/relay${TAG}
- environment:
- - COG_MQTT_HOST=cog
- links:
- - cog
- 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