2023-04-07 03:46:04 +02:00
|
|
|
version: "3.3"
|
|
|
|
services:
|
|
|
|
text-generation-webui:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
# specify which cuda version your card supports: https://developer.nvidia.com/cuda-gpus
|
2023-11-30 06:20:23 +01:00
|
|
|
TORCH_CUDA_ARCH_LIST: ${TORCH_CUDA_ARCH_LIST:-7.5}
|
|
|
|
BUILD_EXTENSIONS: ${BUILD_EXTENSIONS:-}
|
|
|
|
APP_GID: ${APP_GID:-6972}
|
|
|
|
APP_UID: ${APP_UID-6972}
|
2023-04-07 03:46:04 +02:00
|
|
|
env_file: .env
|
2023-11-30 06:20:23 +01:00
|
|
|
user: "${APP_RUNTIME_UID:-6972}:${APP_RUNTIME_GID:-6972}"
|
2023-04-07 03:46:04 +02:00
|
|
|
ports:
|
2023-07-11 23:38:26 +02:00
|
|
|
- "${HOST_PORT:-7860}:${CONTAINER_PORT:-7860}"
|
|
|
|
- "${HOST_API_PORT:-5000}:${CONTAINER_API_PORT:-5000}"
|
2023-04-07 03:46:04 +02:00
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
volumes:
|
2023-11-30 06:20:23 +01:00
|
|
|
- ./characters:/home/app/text-generation-webui/characters
|
|
|
|
- ./extensions:/home/app/text-generation-webui/extensions
|
|
|
|
- ./loras:/home/app/text-generation-webui/loras
|
|
|
|
- ./models:/home/app/text-generation-webui/models
|
|
|
|
- ./presets:/home/app/text-generation-webui/presets
|
|
|
|
- ./prompts:/home/app/text-generation-webui/prompts
|
|
|
|
- ./softprompts:/home/app/text-generation-webui/softprompts
|
|
|
|
- ./training:/home/app/text-generation-webui/training
|
2023-08-09 03:20:27 +02:00
|
|
|
- ./cloudflared:/etc/cloudflared
|
2023-04-07 03:46:04 +02:00
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
reservations:
|
|
|
|
devices:
|
|
|
|
- driver: nvidia
|
2023-11-30 06:20:23 +01:00
|
|
|
count: all
|
2023-04-07 03:46:04 +02:00
|
|
|
capabilities: [gpu]
|