-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
152 lines (139 loc) · 3.34 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
148
149
150
151
152
version: '2'
services:
udp-packet-forwarder:
image: rakwireless/udp-packet-forwarder:latest
container_name: udp-packet-forwarder
restart: unless-stopped
privileged: true
networks:
- bridge
environment:
# The service will auto-discover the concentrator (not for SX1301 concentrators),
# but you can also specify it manually:
#MODEL: "RAK5146"
#INTERFACE: "SPI"
#DEVICE: "/dev/spidev0.0"
#GATEWAY_EUI_SOURCE: "chip"
#GATEWAY_EUI: "0102030405060708"
SERVER_HOST: stack
SERVER_PORT: 1700
postgres:
image: postgres:14.3-alpine3.15
container_name: postgres
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=root
- POSTGRES_USER=root
- POSTGRES_DB=ttn_lorawan
networks:
- bridge
volumes:
- 'postgres:/var/lib/postgresql/data'
ports:
- "5432:5432"
redis:
image: redis:7.0.0-alpine3.15
container_name: redis
command: redis-server --appendonly yes
restart: unless-stopped
networks:
- bridge
volumes:
- 'redis:/data'
ports:
- "6379:6379"
stack:
image: xoseperez/the-things-stack:latest
container_name: stack
restart: unless-stopped
depends_on:
- redis
- postgres
networks:
- bridge
volumes:
- 'stack-blob:/srv/ttn-lorawan/public/blob'
- 'stack-data:/srv/data'
environment:
TTS_DOMAIN: 10.2.21.157
CLI_AUTO_LOGIN: "true"
TTN_LW_BLOB_LOCAL_DIRECTORY: /srv/ttn-lorawan/public/blob
TTN_LW_REDIS_ADDRESS: redis:6379
TTN_LW_IS_DATABASE_URI: postgres://root:root@postgres:5432/ttn_lorawan?sslmode=disable
WAIT_HOSTS: redis:6379, postgres:5432
WAIT_HOSTS_TIMEOUT: 300
WAIT_SLEEP_INTERVAL: 30
WAIT_HOST_CONNECT_TIMEOUT: 30
ports:
- "80:1885"
- "443:8885"
- "1881:1881"
- "1882:1882"
- "1883:1883"
- "1884:1884"
- "1885:1885"
- "1887:1887"
- "8881:8881"
- "8882:8882"
- "8883:8883"
- "8884:8884"
- "8885:8885"
- "8887:8887"
- "1700:1700/udp"
influxdb:
image: influxdb:1.8
container_name: influxdb
restart: unless-stopped
ports:
- '8086:8086'
networks:
- bridge
volumes:
- influxdb-storage:/var/lib/influxdb
environment:
- INFLUXDB_DB=sensors
- INFLUXDB_HTTP_AUTH_ENABLED=true
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=changeme
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: unless-stopped
ports:
- '3000:3000'
networks:
- bridge
depends_on:
- influxdb
volumes:
- grafana-storage:/var/lib/grafana
- ./volume/grafana/provisioning/:/etc/grafana/provisioning
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=changeme
node-red:
image: nodered/node-red:latest
container_name: node-red
restart: unless-stopped
entrypoint: /data/entrypoint.sh
environment:
- TZ=Europe/Amsterdam
ports:
- "1880:1880"
networks:
- bridge
depends_on:
- influxdb
- stack
volumes:
- ./volume/node-red/data:/data
volumes:
influxdb-storage:
grafana-storage:
node-red-data:
redis:
postgres:
stack-blob:
stack-data:
networks:
bridge: