2023-05-17 11:04:56 +00:00
version : "3"
services :
text-generation-webui-docker :
2024-02-09 21:40:42 +00:00
image : atinoda/text-generation-webui:default-nvidia # Specify variant as the :tag
2023-05-17 11:04:56 +00:00
container_name : text-generation-webui
environment :
- EXTRA_LAUNCH_ARGS="--listen --verbose" # Custom launch args (e.g., --model MODEL_NAME)
2024-02-09 21:40:42 +00:00
# - BUILD_EXTENSIONS_LIVE="coqui_tts whisper_stt" # Install named extensions during every container launch. THIS WILL SIGNIFICANLTLY SLOW LAUNCH TIME AND IS NORMALLY NOT REQUIRED.
2023-05-17 11:04:56 +00:00
ports :
- 7860 : 7860 # Default web port
# - 5000:5000 # Default API port
# - 5005:5005 # Default streaming port
volumes :
2023-07-18 17:42:16 +00:00
- ./config/characters:/app/characters
2023-05-17 11:04:56 +00:00
- ./config/loras:/app/loras
- ./config/models:/app/models
- ./config/presets:/app/presets
- ./config/prompts:/app/prompts
- ./config/training:/app/training
2023-07-15 15:07:39 +00:00
# - ./config/extensions:/app/extensions # Persist all extensions
2024-02-09 21:40:42 +00:00
# - ./config/extensions/coqui_tts:/app/extensions/coqui_tts # Persist a single extension
2023-05-17 11:04:56 +00:00
logging :
driver : json-file
options :
max-file : "3" # number of files or file count
max-size : '10m'
2024-02-09 21:40:42 +00:00
# Grant access to Nvidia GPU (comment out deploy: and below if not using Nvidia variant)
2023-05-17 11:04:56 +00:00
deploy :
resources :
reservations :
devices :
- driver : nvidia
device_ids : [ '0' ]
capabilities : [ gpu]