The server checks itself (public IP, DNS, local networks, phone ACL, SIP transports, free audio ports) and says how to fix each problem. A quick or complete network test asks the probe (apps/probe, own image) to test this server from outside: HTTP/HTTPS, SIP over UDP/TCP/TLS, the browser phone's /ws, sampled audio ports. The probe only tests the address that asks. The audio port range comes from RTP_PORT_START/END (default 10000-20000).
13 lines
499 B
Docker
13 lines
499 B
Docker
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# The network test probe (08 §2.6), run outside the network SelfPhoneNG is in. No dependencies:
|
|
# Node 24 runs the TypeScript as it is. Build from the repo root:
|
|
# docker build -f apps/probe/Dockerfile -t selfphoneng-probe .
|
|
FROM node:24-alpine
|
|
WORKDIR /app
|
|
COPY apps/probe/package.json ./
|
|
COPY apps/probe/src/checks.ts apps/probe/src/server.ts apps/probe/src/index.ts ./src/
|
|
ENV NODE_ENV=production
|
|
USER node
|
|
EXPOSE 8080
|
|
CMD ["node", "src/index.ts"]
|