Files
scripts/containers/novnc-py-console.yml
2026-02-12 12:53:19 +02:00

25 lines
685 B
YAML

version: '3.8'
services:
novnc-console:
image: theasp/novnc:latest
container_name: python-console
ports:
- "8080:8080" # noVNC web interface
environment:
- DISPLAY_WIDTH=1280
- DISPLAY_HEIGHT=720
- RUN_XTERM=yes
volumes:
- ./workspace:/workspace
command: >
bash -c "
apt-get update &&
apt-get install -y wget git &&
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh &&
bash /tmp/miniconda.sh -b -p /opt/conda &&
rm /tmp/miniconda.sh &&
/opt/conda/bin/conda init bash &&
exec /app/entrypoint.sh
"
restart: unless-stopped