homelab/fighter/config/kasm/docker-compose.yml

37 lines
961 B
YAML

version: '3'
services:
kasm:
image: linuxserver/kasm:latest
container_name: kasm_kasm
privileged: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
environment:
- KASM_PORT=443
- NVIDIA_VISIBLE_DEVICES=all
#- DOCKER_HUB_USERNAME=
#- DOCKER_HUB_PASSWORD=
volumes:
- ${APP_DATA}/opt:/opt
- ${APP_DATA}/profiles:/profiles
- /dev/input:/dev/input
- /run/udev/data:/run/udev/data
ports:
- 3000:3000
networks:
- web
labels:
- traefik.http.routers.kasm.rule=Host(`kasm.jafner.net`)
- traefik.http.routers.kasm.tls.certresolver=lets-encrypt
- traefik.http.routers.kasm.middlewares=traefik-forward-auth-privileged@file
- traefik.http.services.kasm.loadbalancer.serverstransport=insecureskipverify@file
networks:
web:
external: true