-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Dockerfile according to comments and move to separated folder
Signed-off-by: Peter Pan <[email protected]>
- Loading branch information
1 parent
5070021
commit 480616a
Showing
8 changed files
with
89 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
models | ||
models/ | ||
.venv | ||
.che__/ | ||
*.log | ||
*.git | ||
*.gitignoreivenv | ||
docker | ||
models/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: stable-diffusion-webui | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: stable-diffusion-webui | ||
template: | ||
metadata: | ||
labels: | ||
app: stable-diffusion-webui | ||
spec: | ||
containers: | ||
- name: stable-diffusion-webui | ||
image: $(YOUR-IMAGE-NAME) # the image name specified when doing `docker build` | ||
ports: | ||
- containerPort: 7860 | ||
volumeMounts: | ||
- mountPath: /webui/models | ||
name: models-volume | ||
resources: | ||
limits: | ||
nvidia.com/gpu: 1 # Adjust according to your needs | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: 7860 | ||
initialDelaySeconds: 120 | ||
periodSeconds: 30 | ||
volumes: | ||
- name: models-volume | ||
hostPath: | ||
path: $(YOUR-LOCAL-PATH)/models # absolute pre-download model path on the host machine | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: stable-diffusion-webui-service | ||
spec: | ||
type: NodePort # You can change this to LoadBalancer if needed | ||
ports: | ||
- port: 7860 | ||
targetPort: 7860 | ||
selector: | ||
app: stable-diffusion-webui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters