1
0
Fork 0
1Panel-Appstore/apps/sd-webui-comfy/sd-webui-comfy/docker-compose.yml

42 lines
1.7 KiB
YAML

version: '3.9'
services:
a1111:
container_name: ${CONTAINER_NAME}
build: ./comfy
ports:
- "${SD_CONSOLE_PORT}:7890"
volumes:
- ./data:/data
- ./output:/output
stop_signal: SIGINT
environment:
# CLI_ARGS: Command Line Arguments.
# https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings
# If you want, you can add other Command Line Arguments by referring to the link above.
# By default, it runs through `--opt-sdp-no-mem-attention` without using xformers.
# If you want, you can run it through xformers by deleting `--opt-sdp-no-mem-attention` and inserting `--xformers`.
- CLI_ARGS=${SD_CONSOLE_CLI_COMFY}
#--listen --port 7890 --enable-insecure-extension-access --api --theme=dark --no-half-vae --opt-sdp-no-mem-attention
# APT_ARGS, PIP_ARGS: This is where you write the apt and pip packages to install.
# Install some package if you want.
- APT_ARGS=${SD_CONSOLE_APT_COMFY}
# ex) APT_ARGS=package1 package2 ...
# equals apt-get install -y package1 package2 ...
- PIP_ARGS=${SD_CONSOLE_PIP_COMFY}
# ex) PIP_ARGS=package1 package2 ...
# equals pip install package1 package2 ...
# Tip: If you want to do "pip install -U SomePackage", you can do "-U SomePackage" on the PIP_ARGS.
# Like This: PIP_ARGS=-U SomePackage
# Same at "--user SomePackage"
# PIP_ARGS=--user SomePackage
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['${SD_CONSOLE_DEVICE_IDS}']
capabilities: [gpu,compute,utility]