-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (60 loc) · 2.47 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
version: "3.7"
services:
node-red: #This is the Node-RED container for accessing flows and nodes
build: ./node-red/
container_name: Node-RED
ports:
- "1880:1880" # Works on this port, but proxy will automatically redirect to port 80. Nice! ;)
volumes:
- ./node-red/data:/data
restart: always # Container will automaticly startup
networks:
- main
mosquitto: # Mosquitto (MQTT) broker nothing crazy. Keep in mind nothing this is a non-secure connection (see mosquitto/config/mosquitto.conf)
image: eclipse-mosquitto:2
container_name: Mosquitto-Broker
volumes: #binding local directories to virtual drives inside the container
- ./mosquitto/config/:/mosquitto/config/
- ./mosquitto/log/:/mosquitto/log/
- ./mosquitto/data/:/mosquitto/data/
ports:
- "9001:9001"
- "1883:1883"
- "1884:1884" # websockets
restart: always # Container will automatically start up
networks:
- main
web-app: # This is the dashboard UI that the user sees when connecting to a hotspot or navigates to ui.localhost (This is entirely optional)
image: nginx
container_name: Dashboard-UI
ports:
- "80:80" # Nginx opens a webserver on port 8000. We want to expose it on port 80
volumes:
- ./web-app:/usr/share/nginx/html #Bind web-app directory to nginx its serving directory (no hot reload, but no compose up necessary to update on development)
restart: always # Container will automatically start up
networks:
- main
nodes-web-app: # This is the dashboard UI that the user sees when connecting to a hotspot or navigates to ui.localhost (This is entirely optional)
image: nginx
container_name: Nodes-web-app
ports:
- "81:80" # Nginx opens a webserver on port 8000. We want to expose it on port 80
volumes:
- ./nodes-web-app:/usr/share/nginx/html #Bind web-app directory to nginx its serving directory (no hot reload, but no compose up necessary to update on development)
restart: always # Container will automatically start up
networks:
- main
retype:
container_name: "Retype"
build: ./retype/
volumes:
- ./retype/data:/app
ports:
- 3000:80
command: "retype watch ." # or omit
restart: always # Container will automatically start up
networks:
- main
networks:
main: # Added a custom network to access containers by there original name or id (which is much better than a changing IP-address)
driver: bridge