new contaienrs - code server & novnc box
This commit is contained in:
29
containers/code-server.yml
Normal file
29
containers/code-server.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
# code-server: VS Code in the browser
|
||||
# Image: linuxserver/code-server - lightweight, s6 overlay, PUID/PGID support
|
||||
# Access: http://<host>:8443 (set PASSWORD in Portainer stack env)
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
code-server:
|
||||
image: lscr.io/linuxserver/code-server:latest
|
||||
container_name: code-server
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8443:8443"
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Sofia
|
||||
- PASSWORD=
|
||||
- SUDO_PASSWORD=
|
||||
- PROXY_DOMAIN=code-server
|
||||
- DEFAULT_WORKSPACE=/config/workspace
|
||||
volumes:
|
||||
- code-server-config:/config
|
||||
- code-server-workspace:/config/workspace
|
||||
cap_add:
|
||||
- NET_BIND_SERVICE
|
||||
|
||||
volumes:
|
||||
code-server-config:
|
||||
code-server-workspace:
|
||||
21
containers/novnc-desktop.yml
Normal file
21
containers/novnc-desktop.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
# Lightweight noVNC desktop: Alpine + XFCE4
|
||||
# Image: novaspirit/alpine_xfce4_novnc - minimal footprint
|
||||
# Access: http://<host>:6080/vnc.html (default: alpine/alpine)
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
novnc-desktop:
|
||||
image: novaspirit/alpine_xfce4_novnc:latest
|
||||
container_name: novnc-desktop
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "6080:6080"
|
||||
environment:
|
||||
- TZ=Europe/Sofia
|
||||
- VNC_RESOLUTION=1280x720
|
||||
volumes:
|
||||
- novnc-workspace:/headless
|
||||
shm_size: "256m"
|
||||
|
||||
volumes:
|
||||
novnc-workspace:
|
||||
25
containers/novnc-py-console.yml
Normal file
25
containers/novnc-py-console.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
Reference in New Issue
Block a user