Port im Browser-Javascript

This commit is contained in:
chk
2026-03-09 21:49:54 +01:00
parent 2befb519b2
commit d6743f7669
3 changed files with 84 additions and 1 deletions

24
docker-compose.yaml Normal file
View File

@@ -0,0 +1,24 @@
version: "3.9"
services:
appRobotControlRed:
image: node:20-bullseye
# Alternativ: node:20-alpine (kleiner, aber evtl. openssl/ca/certs nachziehen)
container_name: appRobotControlRed
network_mode: host
working_dir: /app
volumes:
- /home/chk/Documents/appRobotControlScara:/app
environment:
# Deine App liest diese Variablen (config.js ist schon vorbereitet)
- FluidNcHost=fluidncred.local
- FluidNcPort=80
- PORT=3000
ports:
- "3000:3000"
command: >
/bin/bash -lc "
npm ci || npm install &&
node server/server.js
"
restart: unless-stopped