Skip to content

Commit a152a03

Browse files
committed
Address PR review feedback
- Enable network_mode: host for Debian deployment - Add logging for data fetch failures
1 parent f2973ae commit a152a03

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ services:
66
container_name: tar1090
77
hostname: tar1090
88
restart: unless-stopped
9-
# network_mode: host # Use on Linux; doesn't work on macOS Docker
10-
ports:
11-
- "8078:80" # tar1090 web UI
9+
network_mode: host
1210
environment:
1311
- TZ=UTC
1412
# readsb config (built into docker-tar1090)

proxy/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ const server = http.createServer(async (req, res) => {
146146
});
147147
res.end(JSON.stringify(data));
148148
} catch (error) {
149+
console.log(`Data fetch failed: ${error.message}`);
149150
res.writeHead(503, { 'Content-Type': 'application/json' });
150151
res.end(JSON.stringify({
151152
error: error.message,

0 commit comments

Comments
 (0)