This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 275
/
docker-compose.yml
125 lines (125 loc) · 4.03 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
version: '2'
services:
redis:
image: redis
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
- ./.env/redis:/data
rabbitmq:
image: thethingsnetwork/rabbitmq
hostname: rabbitserver
environment:
- RABBITMQ_SSL_CERTFILE=/var/lib/rabbitmq/tls/server.cert
- RABBITMQ_SSL_KEYFILE=/var/lib/rabbitmq/tls/server.key
- RABBITMQ_SSL_CACERTFILE=/var/lib/rabbitmq/tls/ca.cert
ports:
- "1883:1883"
- "8883:8883"
- "5671:5671"
- "5672:5672"
- "15671:15671"
volumes:
- "./.env/mqtt:/var/lib/rabbitmq/tls"
- /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/gateway-connector-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: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0dG4tYWNjb3VudC12MiIsInN1YiI6ImRldiIsInR5cGUiOiJnYXRld2F5IiwiaWF0IjoxNDgyNDIxMTEyfQ.obhobeREK9bOpi-YO5lZ8rpW4CkXZUSrRBRIjbFThhvAsj_IjkFmCovIVLsGlaDVEKciZmXmWnY-6ZEgUEu6H6_GG4AD6HNHXnT0o0XSPgf5_Bc6dpzuI5FCEpcELihpBMaW3vPUt29NecLo4LvZGAuOllUYKHsZi34GYnR6PFlOgi40drN_iU_8aMCxFxm6ki83QlcyHEmDAh5GAGIym0qnUDh5_L1VE_upmoR72j8_l5lSuUA2_w8CH5_Z9CrXlTKQ2XQXsQXprkhbmOKKC8rfbTjRsB_nxObu0qcTWLH9tMd4KGFkJ20mdMw38fg2Vt7eLrkU1R1kl6a65eo6LZi0JvRSsboVZFWLwI02Azkwsm903K5n1r25Wq2oiwPJpNq5vsYLdYlb-WdAPsEDnfQGLPaqxd5we8tDcHsF4C1JHTwLsKy2Sqj8WNVmLgXiFER0DNfISDgS5SYdOxd9dUf5lTlIYdJU6aG1yYLSEhq80QOcdhCqNMVu1uRIucn_BhHbKo_LCMmD7TGppaXcQ2tCL3qHQaW8GCoun_UPo4C67LIMYUMfwd_h6CaykzlZvDlLa64ZiQ3XPmMcT_gVT7MJS2jGPbtJmcLHAVa5NZLv2d6WZfutPAocl3bYrY-sQmaSwJrzakIb2D-DNsg0qBJAZcm2o021By8U4bKAAFQ