-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
executable file
·65 lines (61 loc) · 1.59 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
version: '3.2'
services:
controller:
image: pisupply/iot-lora-gw-controller:0de28747814ddb32916fb6dc34e9e900021e76a6
ports:
- "80:80"
- "443:443"
volumes:
- type: bind
source: /opt/iotloragateway/config
target: /opt/iotloragateway/config
- type: bind
source: /opt/iotloragateway/ssl
target: /opt/iotloragateway/ssl
- type: bind
source: /opt/iotloragateway/ssl
target: /run/systemd
restart: "no"
network_mode: host
privileged: true
packet_forwarder_0:
image: pisupply/iot-lora-gw-pktfwd:dd92dcf6bbba252991f2e0fdd9cb48433b15b28d
volumes:
- type: bind
source: /opt/iotloragateway/config
target: /opt/iotloragateway/config
- type: bind
source: /sys
target: /sys
devices:
- "/dev/spidev0.0:/dev/spidev0.0"
- "/dev/spidev1.2:/dev/spidev1.2"
- "/dev/serial1:/dev/serial1"
- "/dev/mem:/dev/mem"
cap_add:
- SYS_RAWIO
environment:
- LORAMODULE=0
restart: "no"
network_mode: host
privileged: true
packet_forwarder_1:
image: pisupply/iot-lora-gw-pktfwd:dd92dcf6bbba252991f2e0fdd9cb48433b15b28d
volumes:
- type: bind
source: /opt/iotloragateway/config
target: /opt/iotloragateway/config
- type: bind
source: /sys
target: /sys
devices:
- "/dev/spidev2.0:/dev/spidev2.0"
- "/dev/serial1:/dev/serial1"
- "/dev/mem:/dev/mem"
cap_add:
- SYS_RAWIO
environment:
- LORAMODULE=1
restart: "no"
network_mode: host
privileged: true