From 4280f905f5950689ea7f0580084d1d7cb7fa7573 Mon Sep 17 00:00:00 2001 From: nkozobrod Date: Sun, 12 Jul 2026 19:33:02 +0000 Subject: [PATCH] Initial commit: Unsloth Studio for unsloth.kzbrd.ru --- .env.example | 2 ++ .gitignore | 5 +++++ docker-compose.yml | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..b9e92e7 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +JUPYTER_PASSWORD=changeme +USER_PASSWORD=changeme \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..14086a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.env +work/ +*.log +.DS_Store +Thumbs.db diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5b8fdcc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,39 @@ +name: unsloth + +services: + unsloth: + image: unsloth/unsloth:latest + container_name: unsloth + restart: unless-stopped + runtime: nvidia + environment: + - JUPYTER_PASSWORD=${JUPYTER_PASSWORD} + - USER_PASSWORD=${USER_PASSWORD} + - JUPYTER_PORT=8888 + - NVIDIA_VISIBLE_DEVICES=all + ports: + - "8888:8888" + volumes: + - ./work:/workspace/work + - unsloth-cache:/home/unsloth/.cache + networks: + - traefik_proxy + - default + labels: + - "traefik.enable=true" + - "traefik.docker.network=traefik_proxy" + - "traefik.http.routers.unsloth.rule=Host(`unsloth.kzbrd.ru`)" + - "traefik.http.routers.unsloth.entrypoints=websecure" + - "traefik.http.routers.unsloth.tls=true" + - "traefik.http.routers.unsloth.tls.certresolver=myresolver" + - "traefik.http.services.unsloth.loadbalancer.server.port=8000" + - "com.centurylinklabs.watchtower.enable=true" + +networks: + traefik_proxy: + external: true + default: + driver: bridge + +volumes: + unsloth-cache: \ No newline at end of file