File size: 1,161 Bytes
c5c3fd2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | name: paiton-h3
services:
comfyui:
image: ${PAITON_H3_IMAGE:-paiton-minimax-h3:local-v1.0.0}
devices: [/dev/kfd, /dev/dri]
group_add: ["${PAITON_RENDER_GID:?Use launch.sh}"]
user: "${PAITON_UID:?Use launch.sh}:${PAITON_GID:?Use launch.sh}"
shm_size: 2gb
init: true
environment:
HF_HUB_OFFLINE: "1"
ports: ["127.0.0.1:${PAITON_H3_PORT:-8190}:8188"]
volumes:
- ${PAITON_H3_DATA:?Use launch.sh}:/data
- ${PAITON_H3_OUTPUTS:?Use launch.sh}:/outputs
working_dir: /opt/comfyui
entrypoint: [python3, main.py]
command: [--base-directory, /data, --user-directory, /data/user, --output-directory, /outputs,
--extra-model-paths-config, /opt/h3/extra_model_paths.yaml,
--listen, 0.0.0.0, --port, "8188", --disable-api-nodes, --use-ck-attention,
--bf16-vae, --fast-disk, --reserve-vram, "2", --cache-ram, "2", --preview-method, none]
healthcheck:
test: [CMD, python3, -c, "from urllib.request import urlopen; urlopen('http://127.0.0.1:8188/system_stats',timeout=3).close()"]
interval: 30s
timeout: 5s
start_period: 45s
retries: 3
|