This repository has been archived by the owner on Feb 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·92 lines (90 loc) · 1.69 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
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
81
82
83
84
85
86
87
88
89
90
91
92
version: '2'
services:
db:
image: mysql:5.7
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=smart_remote
volumes:
- mysql-data:/var/lib/mysql
ports:
- "3390:3306"
networks:
- rpi-net
web:
build:
context: .
dockerfile: Dockerfile
command: ["python3","-u","run.py"]
working_dir: /app
environment:
- FLASK_ENV=development
- FLASK_DEBUG=1
- APP_DOCKER=true
- FLASK_APP=app/__init__.py
volumes:
- ./:/app
ports:
- "5000:5000"
- "5002:5002"
# - "9090:9090"
privileged: true
# devices:
# - "/dev/ttyUSB0:/dev/ttyUSB0"
networks:
- rpi-net
# network_mode: host
depends_on:
- influxdb
- db
- node-red
- grafana
- mosquitto
node-red:
build:
context: ./node-red
dockerfile: Dockerfile
environment:
- FLOWS=smart_remote.json
volumes:
- node-red:/data
ports:
- "1880:1880"
- "9090:9090"
user: node-red
networks:
- rpi-net
influxdb:
image: influxdb
environment:
- INFLUXDB_DB=smart_remote
volumes:
- influx-data:/var/lib/influxdb
ports:
- "8086:8086"
networks:
- rpi-net
grafana:
image: grafana/grafana
volumes:
- grafana:/var/lib/grafana
ports:
- "3000:3000"
networks:
- rpi-net
mosquitto:
image: eclipse-mosquitto
ports:
- "1883:1883"
- "9001:9001"
networks:
- rpi-net
networks:
rpi-net:
driver: bridge
volumes:
influx-data:
mysql-data:
node-red:
grafana: