forked from TheThingsArchive/ttn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
118 lines (118 loc) · 3.42 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
version: '2'
services:
redis:
image: redis
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
- ./.env/redis:/data
rabbitmq:
image: thethingsnetwork/rabbitmq
hostname: rabbitserver
ports:
- "1883:1883"
- "5672:5672"
- "15672:15672"
volumes:
- /var/lib/rabbitmq
discovery:
image: thethingsnetwork/ttn
hostname: discovery
working_dir: /root
command: discovery --config ./.env/discovery/dev.yml
depends_on:
- redis
environment:
- TERM
- TTN_DISCOVERY_REDIS_ADDRESS=redis:6379
ports:
- "1900:1900"
- "8080:8080"
volumes:
- "./.env/:/root/.env/"
router:
image: thethingsnetwork/ttn
hostname: router
working_dir: /root
command: router --config ./.env/router/dev.yml
depends_on:
- discovery
environment:
- TERM
- TTN_DISCOVERY_ADDRESS=discovery:1900
- TTN_ROUTER_SERVER_ADDRESS_ANNOUNCE=router
ports:
- "1901:1901"
volumes:
- "./.env/:/root/.env/"
broker:
image: thethingsnetwork/ttn
hostname: broker
working_dir: /root
command: broker --config ./.env/broker/dev.yml
depends_on:
- discovery
- networkserver
environment:
- TERM
- TTN_DISCOVERY_ADDRESS=discovery:1900
- TTN_BROKER_SERVER_ADDRESS_ANNOUNCE=broker
- TTN_BROKER_NETWORKSERVER_ADDRESS=networkserver:1903
ports:
- "1902:1902"
volumes:
- "./.env/:/root/.env/"
networkserver:
image: thethingsnetwork/ttn
hostname: networkserver
working_dir: /root
command: networkserver --config ./.env/networkserver/dev.yml
depends_on:
- redis
environment:
- TERM
- TTN_DISCOVERY_ADDRESS=discovery:1900
- TTN_NETWORKSERVER_REDIS_ADDRESS=redis:6379
ports:
- "1903:1903"
volumes:
- "./.env/:/root/.env/"
handler:
image: thethingsnetwork/ttn
hostname: handler
working_dir: /root
command: handler --config ./.env/handler/dev.yml
depends_on:
- discovery
- redis
- rabbitmq
environment:
- TERM
- TTN_DISCOVERY_ADDRESS=discovery:1900
- TTN_HANDLER_SERVER_ADDRESS_ANNOUNCE=handler
- TTN_HANDLER_REDIS_ADDRESS=redis:6379
- TTN_HANDLER_MQTT_ADDRESS=rabbitmq:1883
- TTN_HANDLER_AMQP_ADDRESS=rabbitmq:5672
ports:
- "1904:1904"
- "8084:8084"
volumes:
- "./.env/:/root/.env/"
bridge:
image: thethingsnetwork/lora-gateway-bridge
hostname: bridge
ports:
- "1700:1700/udp"
restart: always
depends_on: [ router ]
environment:
UDP_BIND: ":1700"
TTN_DISCOVERY_SERVER: discovery:1900
TTN_ROUTER: dev
# The following environment variables make that communication for gateway
# "0102030405060708" is forwarded as authenticated communication for
# gateway "dev"
TTN_GATEWAY_EUI: 0102030405060708
TTN_GATEWAY_ID: dev
TTN_GATEWAY_TOKEN: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJ0dG4tYWNjb3VudC1wcmV2aWV3Iiwic3ViIjoiZGV2IiwidHlwZSI6ImdhdGV3YXkiLCJpYXQiOjE0NzY0Mzk0Mzh9.kEOiLe9j4qRElZOt_bAXmZlva1nV6duIL0MDVa3bx2SEWC3qredaBWXWq4FmV4PKeI_zndovQtOoValH0B_6MW6vXuWL1wYzV6foTH5gQdxmn-iuQ1AmAIYbZeyHl9a-NPqDgkXLwKmo2iB1hUi9wV6HXfIOalguDtGJbmMfJ2tommsgmuNCXd-2zqhStSy8ArpROFXPm7voGDTcgm4hfchr7zhn-Er76R-eJa3RZ1Seo9BsiWrQ0N3VDSuh7ycCakZtkaLD4OTutAemcbzbrNJSOCvvZr8Asn-RmMkjKUdTN4Bgn3qlacIQ9iZikPLT8XyjFkj-8xjs3KAobWg40A