From e0ca50afc87b8bd82c2e395babfc6f9b24f88ea6 Mon Sep 17 00:00:00 2001 From: suymur Date: Fri, 20 Feb 2026 11:23:16 +0100 Subject: [PATCH] Add Docker Compose support for simplified deployment - Add docker-compose.yaml with service configuration - Support for multiple transport options (TCP, Serial, BLE) - Configure standard port mapping (8000:8000) - Use named volume for portable data persistence - Update Dockerfile to use npm install for better compatibility Co-Authored-By: Claude Sonnet 4.5 --- Dockerfile | 2 +- docker-compose.yaml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yaml diff --git a/Dockerfile b/Dockerfile index 5ab2f49..7d8358e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM node:20-slim AS frontend-builder WORKDIR /build COPY frontend/package*.json ./ -RUN npm ci +RUN npm install COPY frontend/ ./ RUN npm run build diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..feed822 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,31 @@ +services: + remoteterm: + build: . + ports: + - "8000:8000" + volumes: + - meshcore-data:/app/data + environment: + # Radio connection — set ONE of the following transport options: + + # Serial (USB) — also uncomment the `devices` section below + # MESHCORE_SERIAL_PORT: /dev/ttyUSB0 + # MESHCORE_SERIAL_BAUDRATE: 115200 + + # TCP + # MESHCORE_TCP_HOST: 192.168.1.100 + # MESHCORE_TCP_PORT: 5000 + + # BLE + # MESHCORE_BLE_ADDRESS: AA:BB:CC:DD:EE:FF + # MESHCORE_BLE_PIN: "" + + MESHCORE_LOG_LEVEL: INFO + MESHCORE_DATABASE_PATH: data/meshcore.db + # Uncomment to pass through a USB serial device: + # devices: + # - /dev/ttyUSB0:/dev/ttyUSB0 + restart: unless-stopped + +volumes: + meshcore-data: