2023-04-06 21:46:04 -04: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-07-11 17:38:26 -04:00
|
|
|
TORCH_CUDA_ARCH_LIST: ${TORCH_CUDA_ARCH_LIST:-7.5}
|
|
|
|
WEBUI_VERSION: ${WEBUI_VERSION:-HEAD}
|
2023-04-06 21:46:04 -04:00
|
|
|
env_file: .env
|
|
|
|
ports:
|
2023-07-11 17:38:26 -04:00
|
|
|
- "${HOST_PORT:-7860}:${CONTAINER_PORT:-7860}"
|
|
|
|
- "${HOST_API_PORT:-5000}:${CONTAINER_API_PORT:-5000}"
|
|
|
|
- "${HOST_API_STREAM_PORT:-5005}:${CONTAINER_API_STREAM_PORT:-5005}"
|
2023-04-06 21:46:04 -04:00
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
volumes:
|
|
|
|
- ./characters:/app/characters
|
|
|
|
- ./extensions:/app/extensions
|
|
|
|
- ./loras:/app/loras
|
|
|
|
- ./models:/app/models
|
|
|
|
- ./presets:/app/presets
|
|
|
|
- ./prompts:/app/prompts
|
|
|
|
- ./softprompts:/app/softprompts
|
|
|
|
- ./training:/app/training
|
2023-08-08 21:20:27 -04:00
|
|
|
- ./cloudflared:/etc/cloudflared
|
2023-04-06 21:46:04 -04:00
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
reservations:
|
|
|
|
devices:
|
|
|
|
- driver: nvidia
|
|
|
|
device_ids: ['0']
|
|
|
|
capabilities: [gpu]
|