Skip to content

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

@xxcomcadxx

Description

@xxcomcadxx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions