mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-10 09:12:31 +08:00
Update docker structure
Move docker file to root path (most common use case) Use local volumes
This commit is contained in:
parent
375bfd9ffb
commit
5d65ecfceb
@ -5,8 +5,8 @@ name: "comfyui"
|
|||||||
x-base_service: &base_service
|
x-base_service: &base_service
|
||||||
image: comfyui:1
|
image: comfyui:1
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: .
|
||||||
dockerfile: docker/docker_files/default.Dockerfile
|
dockerfile: dockerfiles/default.Dockerfile
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=--listen --port 8188
|
- CLI_ARGS=--listen --port 8188
|
||||||
@ -14,10 +14,10 @@ x-base_service: &base_service
|
|||||||
ports:
|
ports:
|
||||||
- "8188:8188"
|
- "8188:8188"
|
||||||
volumes:
|
volumes:
|
||||||
- models:/opt/comfy_ui/models
|
- ./models:/opt/comfy_ui/models
|
||||||
- output:/opt/comfy_ui/output
|
- ./output:/opt/comfy_ui/output
|
||||||
- input:/opt/comfy_ui/input
|
- ./input:/opt/comfy_ui/input
|
||||||
- custom_nodes:/opt/comfy_ui/custom_nodes
|
- ./custom_nodes:/opt/comfy_ui/custom_nodes
|
||||||
|
|
||||||
x-nvidia_docker: &nvidia_docker
|
x-nvidia_docker: &nvidia_docker
|
||||||
deploy:
|
deploy:
|
||||||
@ -30,8 +30,8 @@ x-nvidia_docker: &nvidia_docker
|
|||||||
|
|
||||||
x-base_service_amd: &amd_docker
|
x-base_service_amd: &amd_docker
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: .
|
||||||
dockerfile: docker/docker_files/amd.Dockerfile
|
dockerfile: dockerfiles/amd.Dockerfile
|
||||||
|
|
||||||
group_add:
|
group_add:
|
||||||
- video
|
- video
|
||||||
@ -65,10 +65,3 @@ services:
|
|||||||
profiles: ["cpu"]
|
profiles: ["cpu"]
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=--listen --port 8188 --cpu
|
- CLI_ARGS=--listen --port 8188 --cpu
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
models:
|
|
||||||
output:
|
|
||||||
input:
|
|
||||||
custom_nodes:
|
|
||||||
@ -14,4 +14,4 @@ RUN pip install -r requirements.txt
|
|||||||
|
|
||||||
|
|
||||||
ENV CLI_ARGS=""
|
ENV CLI_ARGS=""
|
||||||
CMD python -u main.py ${CLI_ARGS}
|
CMD python main.py ${CLI_ARGS}
|
||||||
Loading…
Reference in New Issue
Block a user