Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA SUPPORT IN DOCKER-COMPOSE.YML AND FIX TO PORT VARIABLE #9

Open
xxcomcadxx opened this issue Dec 28, 2024 · 0 comments
Open

CUDA SUPPORT IN DOCKER-COMPOSE.YML AND FIX TO PORT VARIABLE #9

xxcomcadxx opened this issue Dec 28, 2024 · 0 comments

Comments

@xxcomcadxx
Copy link

use this docker-compose.yml for gpu support and port variable fix

version: "3.7"

services:
webui:
image: ghcr.io/neggles/sd-webui-docker:latest
restart: unless-stopped
container_name: sd-webui
build:
context: ./docker
dockerfile: Dockerfile
target: webui
runtime: nvidia
environment:
NVIDIA_VISIBLE_DEVICES: all
CLI_ARGS: "--skip-version-check --allow-code --enable-insecure-extension-access --api --xformers --opt-chan> PYTHONUNBUFFERED: "1"
TERM: "${TERM}"
SD_WEBUI_VARIANT: "default" # <-- added this variable
ports:
- mode: ingress
target: 7860
published: 7860
protocol: tcp
volumes:
- type: bind
source: ./data
target: /data
- type: bind
source: ./output
target: /output

browser:
image: ghcr.io/neggles/sd-webui-docker/browser:latest
restart: unless-stopped
container_name: sd-browser
profiles:
- "browser" # <-- fixed the indentation
build:
context: ./browser
dockerfile: Dockerfile
target: browser
environment:
BROWSER_PORT: 7869
ports:
- mode: ingress
target: 7869
published: 7869
protocol: tcp
volumes:
- type: bind
source: ./data
target: /data
- type: bind
source: ./output
target: /output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant