-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
96 lines (85 loc) · 1.8 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
96
version: "2"
services:
nginx:
build: ./nginx
depends_on:
- nodered
- application-server
ports:
- "80:80"
nodered:
build: ./nodered
restart: unless-stopped
depends_on:
- mosquitto
privileged: true
labels:
io.balena.features.supervisor-api: '1'
volumes:
- "nodereddata:/data"
devices:
- "/dev/mem:/dev/mem"
- "/dev/gpiomem:/dev/gpiomem"
- "/dev/i2c-1:/dev/i2c-1"
cap_add:
- SYS_RAWIO
network-server:
build: ./network-server
restart: unless-stopped
depends_on:
- mosquitto
- postgresql
- redis
- application-server
application-server:
build: ./application-server
restart: unless-stopped
depends_on:
- mosquitto
- postgresql
- redis
packet_forwarder:
build: ./packet_forwarder
restart: unless-stopped
depends_on:
- gateway-bridge
environment:
- SERVER_TTN=true
- SERVER_1_ENABLED=true
- SERVER_1_ADDRESS=gateway-bridge
- SERVER_1_PORTUP=1700
- SERVER_1_PORTDOWN=1700
- SERVER_1_DOWNLINK=true
privileged: true
devices:
- "/dev/mem:/dev/mem"
- "/dev/gpiomem:/dev/gpiomem"
- "/dev/i2c-1:/dev/i2c-1"
cap_add:
- SYS_RAWIO
gateway-bridge:
build: ./gateway-bridge
restart: unless-stopped
depends_on:
- mosquitto
ports:
- "1700:1700/udp"
postgresql:
build: ./postgresql
restart: unless-stopped
volumes:
- "postgresqldata:/var/lib/postgresql/data"
redis:
image: arm32v7/redis:5
restart: unless-stopped
volumes:
- "redisdata:/data"
mosquitto:
image: arm32v6/eclipse-mosquitto
restart: unless-stopped
ports:
- 1883:1883
volumes:
postgresqldata:
redisdata:
nodereddata: