-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathdocker-compose.dev.yml
51 lines (51 loc) · 1.51 KB
/
docker-compose.dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '2'
services:
postgres:
image: postgres:9.5
environment:
- POSTGRES_USER=cog
- POSTGRES_PASSWORD=cog
cog:
build: .
environment:
- COG_API_URL_BASE=http://cog:4000
- COG_TRIGGER_URL_BASE=http://cog:4001
- COG_SERVICE_URL_BASE=http://cog:4002
- COG_MQTT_HOST=0.0.0.0
- DATABASE_URL=ecto://cog:cog@postgres:5432/cog
- COG_SLACK_ENABLED=1
- SLACK_API_TOKEN=${SLACK_API_TOKEN}
- COG_BOOTSTRAP_USERNAME=admin
- COG_BOOTSTRAP_PASSWORD=changeme
- COG_BOOTSTRAP_EMAIL_ADDRESS=cog@localhost
- COG_BOOTSTRAP_FIRST_NAME=Cog
- COG_BOOTSTRAP_LAST_NAME=Administrator
- COG_ALLOW_SELF_REGISTRATION=true
- RELAY_ID=00000000-0000-0000-0000-000000000000
- RELAY_COG_TOKEN=supersecret
depends_on:
- postgres
ports:
- 1883
- 4000:4000
- 4001:4001
- 4002:4002
entrypoint: /home/operable/cog/scripts/docker-start
relay:
image: operable/relay:latest
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- COG_API_URL_BASE=http://cog:4000
- COG_TRIGGER_URL_BASE=http://cog:4001
- COG_SERVICE_URL_BASE=http://cog:4002
- RELAY_COG_REFRESH_INTERVAL=30s
- RELAY_DOCKER_CLEAN_INTERVAL=1m
- RELAY_COG_HOST=cog
- RELAY_DYNAMIC_CONFIG_ROOT=/tmp/bundle_configs
- RELAY_ID=00000000-0000-0000-0000-000000000000
- RELAY_COG_TOKEN=supersecret
depends_on:
- cog
entrypoint: /usr/local/bin/relay