forked from chirpstack/chirpstack-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
147 lines (132 loc) · 3.72 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "3"
services:
concentratord_slot1:
#image: concentratord:0.1
# or comment out image: and build it yourself
build:
context: ./chirpstack_concentratord_sx1302_docker/
dockerfile: ./Dockerfile
restart: unless-stopped
privileged: true
volumes:
# Mount the shared volume for the socket files
- concentratord_sockets_slot1:/tmp/
- ./configuration/concentratord/concentratord_RAK7391_slot1.toml:/app/concentratord.toml:ro
networks:
- slot_1_cloud
mqtt_forwarder_cloud:
#image: mqtt_forwarder:0.1
# or comment out image: and build it yourself
build:
context: ./chirpstack_mqtt_forwarder_docker/
dockerfile: ./Dockerfile
restart: unless-stopped
# privileged: true
# ports:
# - "1700:1700/udp"
volumes:
# Mount the shared volume for the socket files
- concentratord_sockets_slot1:/tmp/
- ./configuration/chirpstack-mqtt-forwarder/chirpstack-mqtt-forwarder-cloud.toml:/app/chirpstack-mqtt-forwarder.toml:ro
depends_on:
- concentratord_slot1
networks:
- slot_1_cloud
chirpstack:
image: chirpstack/chirpstack:4
command: -c /etc/chirpstack
restart: unless-stopped
volumes:
- ./configuration/chirpstack:/etc/chirpstack
- ./lorawan-devices:/opt/lorawan-devices
depends_on:
- postgres
- mosquitto
- redis
environment:
- MQTT_BROKER_HOST=mosquitto
- REDIS_HOST=redis
- POSTGRESQL_HOST=postgres
ports:
- 8080:8080
networks:
- slot_2_local
chirpstack-rest-api:
image: chirpstack/chirpstack-rest-api:4
restart: unless-stopped
command: --server chirpstack:8080 --bind 0.0.0.0:8090 --insecure
ports:
- 8090:8090
depends_on:
- chirpstack
networks:
- slot_2_local
postgres:
image: postgres:14-alpine
restart: unless-stopped
volumes:
- ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d
- postgresqldata:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=root
networks:
- slot_2_local
redis:
image: redis:7-alpine
restart: unless-stopped
volumes:
- redisdata:/data
networks:
- slot_2_local
mosquitto:
image: eclipse-mosquitto:2
restart: unless-stopped
ports:
- 1883:1883
volumes:
- ./configuration/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
networks:
- slot_2_local
concentratord_slot2:
#image: concentratord:0.1
# or comment out image: and build it yourself
build:
context: ./chirpstack_concentratord_sx1302_docker/
dockerfile: ./Dockerfile
restart: unless-stopped
privileged: true
volumes:
# Mount the shared volume for the socket files
# - concentratord_sockets_slot2:/tmp/
- /tmp/:/tmp/
- ./configuration/concentratord/concentratord_RAK7391_slot2.toml:/app/concentratord.toml:ro
networks:
- slot_2_local
mqtt_forwarder_local:
#image: mqtt_forwarder:0.1
# or comment out image: and build it yourself
build:
context: ./chirpstack_mqtt_forwarder_docker/
dockerfile: ./Dockerfile
restart: unless-stopped
# privileged: true
# ports:
# - "1700:1700/udp"
volumes:
# Mount the shared volume for the socket files
# - concentratord_sockets_slot2:/tmp/
- /tmp/:/tmp/
- ./configuration/chirpstack-mqtt-forwarder/chirpstack-mqtt-forwarder-local.toml:/app/chirpstack-mqtt-forwarder.toml:ro
depends_on:
- chirpstack
- concentratord_slot2
networks:
- slot_2_local
volumes:
postgresqldata:
redisdata:
concentratord_sockets_slot1:
# concentratord_sockets_slot2:
networks:
slot_1_cloud:
slot_2_local: