Files
appRobotHoming/docker-compose.yaml
2026-06-25 17:16:30 +02:00

33 lines
1.2 KiB
YAML
Executable File

services:
appRobotHoming:
image: node:20-bullseye
container_name: appRobot_Homing
working_dir: /app
volumes:
- /home/chk/Documents/appRobotHoming:/app
environment:
- HTTPS_PORT=2093
# host.docker.internal zeigt auf den Docker-Host → erreicht andere Stacks per Port
- PYTHON_BIN=python3
- WEBCAM_URL=http://host.docker.internal:8444
- BODYTRACKER_URL=http://host.docker.internal:8446
# Driver-WebSocket (Plain-Text-G-Code, self-signed). Homing sendet G92
# hierhin (= Motorposition setzen ohne Bewegung). Host-Port lt.
# appRobotDriver/doc/API.md: 2096.
- DRIVER_WS_URL=wss://host.docker.internal:2096
extra_hosts:
# Macht host.docker.internal auf Linux verfügbar (Standard auf macOS/Windows)
- "host.docker.internal:host-gateway"
ports:
- "2093:2093"
command: >
/bin/bash -lc "apt-get update -qq && apt-get install -y --no-install-recommends python3-pip && pip3 install --quiet --no-cache-dir opencv-python-headless numpy scipy && npm ci || npm install && node server/server.js"
networks:
- approbots
restart: unless-stopped
networks:
approbots:
external: true
name: approbots