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

48 lines
1.7 KiB
YAML
Raw Normal View History

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:
2023-10-17 08:11:11 -07:00
- KASM_PORT=4443
2023-10-16 22:40:26 -07:00
- 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
ports:
2023-10-17 08:07:26 -07:00
- 43000:3000
2023-10-17 08:11:11 -07:00
- 4443:4443
labels:
2023-10-17 08:11:11 -07:00
#- 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=4443
#- 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