-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 1.54 KB
/
docker-compose.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
version: "3"
services:
# The Node container with heatsheet included
app:
build:
context: app
ports:
- "9999:9999"
restart: unless-stopped
volumes:
#config.example.json is copied inside this folder
- ./volumes/app/config:/app/config:rw
environment:
#set environment variables in .env
#HTTP-Auth for the ui
- WEB_USERNAME=${WEB_USERNAME}
- WEB_PASSWORD=${WEB_PASSWORD}
#your Tado credentials
- TADO_USERNAME=${TADO_USERNAME}
- TADO_PASSWORD=${TADO_PASSWORD}
#influxdb specific
#don't change if you're using the container here
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_BUCKET=${INFLUXDB_BUCKET}
#create long random string
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
- INFLUXDB_ORG=${INFLUXDB_ORG}
#change to false if you're not using influxdb
- INFLUXDB_ENABLED=${INFLUXDB_ENABLED}
#comment this part out if you don't plan to use influxdb (and set INFLUXDB_ENABLED above in app container)
influxdb:
image: influxdb
restart: unless-stopped
ports:
- "8086:8086"
volumes:
- ./volumes/influxdb/data:/var/lib/influxdb2
- ./volumes/influxdb/config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_TOKEN}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG}
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD}