Last active
January 21, 2026 16:51
-
-
Save devMinseok/fbe522e7c5763012fd265f8fa2e1591d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| # [서비스 1] 모델 자동 다운로더 | |
| model-downloader: | |
| image: python:3.11-slim | |
| volumes: | |
| - ./models:/models | |
| environment: | |
| - HF_REPO=unsloth/GLM-4.7-Flash-GGUF | |
| - HF_FILE=GLM-4.7-Flash-Q4_K_M.gguf | |
| command: > | |
| /bin/sh -c " | |
| pip install huggingface_hub && | |
| python -c 'import os; from huggingface_hub import hf_hub_download; hf_hub_download(repo_id=os.environ[\"HF_REPO\"], filename=os.environ[\"HF_FILE\"], local_dir=\"/models\", local_dir_use_symlinks=False)' | |
| " | |
| # [서비스 2] LLM 엔진 (llama.cpp) | |
| glm-server: | |
| image: ghcr.io/ggml-org/llama.cpp:server-cuda | |
| container_name: llm-server | |
| restart: unless-stopped | |
| ports: | |
| - "8080:8080" | |
| volumes: | |
| - ./models:/models | |
| environment: | |
| - LLAMA_ARG_N_GPU_LAYERS=99 | |
| deploy: | |
| resources: | |
| reservations: | |
| devices: | |
| - driver: nvidia | |
| count: all | |
| capabilities: [gpu] | |
| depends_on: | |
| model-downloader: | |
| condition: service_completed_successfully | |
| command: > | |
| -m /models/GLM-4.7-Flash-Q4_K_M.gguf | |
| --host 0.0.0.0 | |
| --port 8080 | |
| --api-key ${LLM_API_KEY} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment