-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (80 loc) · 2.21 KB
/
docker-compose.yml
File metadata and controls
80 lines (80 loc) · 2.21 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
flask-app:
build:
context: .
dockerfile: flask-docker/Dockerfile
ports:
- ${PORT_FLASK}:5000
restart: always
volumes:
- ${IOTAPPDIR}/flask-app:/app
environment:
- FLASK_ENV=production
influxdb:
image: influxdb:${INFLUXDB_VERSION}
container_name: influxdb
ports:
- ${PORT_INFLUXDB}:8086
volumes:
- ${IOTAPPDIR}/influxdb/data:/var/lib/influxdb2
- ${IOTAPPDIR}/influxdb/config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET}
restart: unless-stopped
node-red:
stdin_open: true
tty: true
user: ${PUID}
ports:
- ${PORT_NODERED}:1880
environment:
- TZ=${TZ}
volumes:
- ${IOTAPPDIR}/node-red:/data
container_name: node-red
image: nodered/node-red:latest
restart: unless-stopped
mqttx:
image: emqx/mqttx-web:latest
container_name: mqttx
ports:
- ${PORT_MQTTX}:80
restart: unless-stopped
mosquitto-mqtt:
image: eclipse-mosquitto:latest
container_name: mosquitto-mqtt
restart: unless-stopped
stdin_open: true
tty: true
ports:
- ${PORT_MQTT_MOSQUITTO_HTTP}:1883
- ${PORT_MQTT_MOSQUITTO_HTTPS}:9001
volumes:
# - ${IOTAPPDIR}/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf #Custom config file
- ${IOTAPPDIR}/mosquitto/data:/mosquitto/data
- ${IOTAPPDIR}/mosquitto/log:/mosquitto/log
grafana:
image: grafana/grafana-enterprise
container_name: grafana
restart: unless-stopped
user: ${PUID}:${PGID}
ports:
- ${PORT_GRAFANA}:3000
volumes:
- ${IOTAPPDIR}/grafana/data:/var/lib/grafana
homeassistant:
container_name: iot-homeassistant
image: ghcr.io/home-assistant/home-assistant:latest
volumes:
- ${IOTAPPDIR}/home-assistant/config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
ports:
- ${PORT_HOMEASSISTANT}:8123
restart: unless-stopped
privileged: true
networks: {}