-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
95 lines (87 loc) · 2.14 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
93
94
95
################################################################################
# Node-RED Compose
################################################################################
# docker-compose -f docker-compose.yml -p myNoderedProject up
################################################################################
version: "3.7"
services:
rpi-monitor:
# https://rpi-experiences.blogspot.de/2018/02/rpi-monitor-docker-container.html
# https://github.com/michaelmiklis/docker-rpi-monitor/issues/1
container_name: myrpimon
image: michaelmiklis/rpi-monitor
environment:
TZ: 'Europe/Vienna'
network_mode: "service:vpn"
restart: unless-stopped
ports:
- "8888:8888"
devices:
- "/dev/vchiq"
- "/dev/vcs"
volumes:
- /opt/vc:/opt/vc/
- /boot/:/boot/
- /sys/:/dockerhost/sys/:ro
- /etc/:/dockerhost/etc/:ro
- /proc/:/dockerhost/proc/:ro
- /usr/lib/:/dockerhost/usr/lib/:ro
- rpimon-data:/var/lib/rpimonitor/stat/
node-red:
container_name: mynodered
build: ./node-red
command: npm start
environment:
TZ: 'Europe/Vienna'
restart: unless-stopped
depends_on:
- vpn
- mqtt
ports:
- "1880:1880"
networks:
- node-red-net
volumes:
- node-red-data:/data
gpiod:
image: corbosman/pigpiod
privileged: true
restart: unless-stopped
mqtt:
image: "eclipse-mosquitto"
ports:
- "1883:1883"
- "9001:9001"
volumes:
- mqtt-data:/mosquitto
restart: unless-stopped
web:
image: dperson/nginx
depends_on:
- node-red
environment:
TZ: 'Europe/Vienna'
links:
- vpn:node-red
networks:
- node-red-net
ports:
- "80:80"
- "443:443"
read_only: true
tmpfs:
- /run
- /tmp
- /var/cache/nginx
restart: unless-stopped
stdin_open: true
tty: true
command: -w "http://node-red:8888;/node-red"
# service1 shares the network stack of vpn. The service can by reached using
# the name of the service as a hostname.
volumes:
rpimon-data:
node-red-data:
mqtt-data:
networks:
node-red-net: