-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
62 lines (57 loc) · 1.22 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
version: "3.9"
services:
mysql:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: coord
ports:
- 3306:3306
volumes:
- ./mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_ARBITRARY=1
- PMA_HOSTS='mysql'
ports:
- "9000:80"
ui:
container_name: ui
build: ./ui
ports:
- "3000:3000"
depends_on:
- backend
backend:
container_name: backend
build: ./server
ports:
- "8000:8000"
environment:
PORT: "8000"
MYSQL_URL: "mysql"
MYSQL_PORT: "3306"
MQTT_BROKER_URL: "mosquitto"
volumes:
- ./server/data:/app/data
depends_on:
- mysql
- mosquitto
- nodered
mosquitto:
image: eclipse-mosquitto:latest
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./mosquitto/config/passwd:/mosquitto/config/passwd
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
nodered:
image: nodered/node-red
ports:
- "1880:1880"
volumes:
- ./node-red:/data