forked from yondonfu/comfystream
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdevcontainer.json
More file actions
51 lines (51 loc) · 1.93 KB
/
devcontainer.json
File metadata and controls
51 lines (51 loc) · 1.93 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "ComfyStream",
// Commented out to use the build context instead
// TODO: Update this to the correct image name
// when using images other than livepeer/comfystream:latest
// "image": "livepeer/comfystream:streamdiffusion",
"build": {
"dockerfile": "../docker/Dockerfile",
"context": "../"
},
"runArgs": [
"--gpus=all"
],
// Features to add to the dev container. More info: https://containers.dev/features.
// Configure tool-specific properties.
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": "/workspace/miniconda3/envs/comfystream/bin/python",
"python.venvPath": "/workspace/miniconda3/envs",
"python.terminal.activateEnvInCurrentTerminal": false,
"python.terminal.activateEnvironment": false,
"terminal.integrated.shellIntegration.enabled": true
},
"extensions": [
"ms-python.python",
"ms-python.black-formatter",
"ms-python.vscode-pylance",
"ms-python.debugpy"
]
}
},
"appPort": [
"8188:8188", // ComfyUI
"8889:8889", // ComfyStream
"3000:3000" // ComfyStream UI (optional)
],
"forwardPorts": [8188, 8889, 3000],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// Use 'mounts' to make a list of local folders available inside the container.
"workspaceFolder": "/workspace/comfystream",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace/comfystream,type=bind",
"mounts": [
// Use 'mounts' to map to comfyui models on the host
"source=${localEnv:HOME}/models/ComfyUI--models,target=/workspace/ComfyUI/models,type=bind,consistency=cached",
"source=${localEnv:HOME}/models/ComfyUI--output,target=/workspace/ComfyUI/output,type=bind,consistency=cached"
],
"postCreateCommand": ".devcontainer/post-create.sh"
}