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

45 lines
1.6 KiB
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
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.routers.kasm.service=kasm@docker
- traefik.http.routers.kasm.entrypoints=websecure
- traefik.http.services.kasm.loadbalancer.server.port=443
- traefik.http.services.kasm.loadbalancer.serverstransport=insecureskipverify@file
- traefik.http.routers.kasm-setup.rule=Host(`setup.kasm.jafner.net`)
- traefik.http.routers.kasm-setup.tls.certresolver=lets-encrypt
- traefik.http.routers.kasm-setup.middlewares=traefik-forward-auth-privileged@file
- traefik.http.routers.kasm-setup.service=kasm-setup@docker
- traefik.http.routers.kasm-setup.entrypoints=websecure
- traefik.http.services.kasm-setup.loadbalancer.server.port=3000
- traefik.http.services.kasm-setup.loadbalancer.serverstransport=insecureskipverify@file
networks:
web:
external: true