Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

1.1 KB
Raw Blame
services:
  forge:
    image: ghcr.io/ai-dock/stable-diffusion-webui-forge@sha256:36a8b82c9ddec17a88303d933f3d08d2c1d1286617f5642281859f64d40beddc
    container_name: ods-forge
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    environment:
      - FORGE_PORT_HOST=7861
      - FORGE_ARGS=--api --listen
      - AUTO_UPDATE=false
      - SUPERVISOR_NO_AUTOSTART=${SUPERVISOR_NO_AUTOSTART:-syncthing,quicktunnel,serviceportal,sshd,jupyter}
    volumes:
      - ./data/forge/models:/opt/stable-diffusion-webui-forge/models:rw
      - ./data/forge/outputs:/opt/stable-diffusion-webui-forge/outputs:rw
    ports:
      - "127.0.0.1:${FORGE_PORT:-7861}:7861"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://127.0.0.1:7861/"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 180s
    networks:
      - ods-network
    deploy:
      resources:
        limits:
          cpus: '4.0'
          memory: 16G
        reservations:
          cpus: '1.0'
          memory: 4G

networks:
  ods-network:
    external: true
    name: ods-network