From 081cd638c9294294d8c0a80efc4c009982261899 Mon Sep 17 00:00:00 2001 From: Outis Date: Mon, 1 Jun 2026 09:24:24 -0400 Subject: [PATCH] Add docker-compose.yml for InvokeAI setup --- docker-compose.yml | 68 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2a39120 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,68 @@ +# ~/docker/ai-image-gen/docker-compose.yml +# +# ═══════════════════════════════════════════════════════════════════════════════ +# USAGE +# ═══════════════════════════════════════════════════════════════════════════════ +# +# Managed by the ai-portal stack — use localai.mydomain.com to switch stacks. +# To start manually: +# cd ~/docker/ai-image-gen && docker compose up -d +# +# InvokeAI → https://images.mydomain.com +# +# First model install: +# Open https://images.mydomain.com → Model Manager → search sd-1.5-inpainting → Install +# +# ═══════════════════════════════════════════════════════════════════════════════ +# UPDATES — run update.sh manually when you have a specific reason to update +# ═══════════════════════════════════════════════════════════════════════════════ +# +# Good reasons to update: +# - A bug you're hitting is fixed +# - An extension you want requires a newer build +# - A security issue is announced +# +# Bad reasons to update: +# - It's been a while +# - There's a newer version number +# +# Run: ./update.sh +# +# ═══════════════════════════════════════════════════════════════════════════════ +# ARCHIVING — run archive.sh after first successful boot +# ═══════════════════════════════════════════════════════════════════════════════ +# +# chmod +x archive.sh && ./archive.sh +# Store archive/ and data/ on external drive for offline restore. +# +# InvokeAI → https://images.mydomain.com +# ═══════════════════════════════════════════════════════════════════════════════ + +services: + + # ── InvokeAI ───────────────────────────────────────────────────────────────── + # Best canvas GUI for inpainting — Photoshop-style mask painting + # Pinned to v6.11.1 — avoids broken latest-tag issues + # To upgrade: change tag, run update.sh + invokeai: + image: ghcr.io/invoke-ai/invokeai:v6.11.1 + pull_policy: missing + environment: + - INVOKEAI_ROOT=/invokeai + - INVOKEAI_ram=8 # GB of system RAM for model cache + - INVOKEAI_vram=3 # Turing Tensor Cores — give it VRAM to work with + # drop to 0 if you hit OOM errors + - INVOKEAI_precision=float16 + - TZ=America/New_York + volumes: + - ./data/invokeai:/invokeai # models, outputs, db, config all live here + ports: + - "9090:9090" + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: [gpu] + restart: unless-stopped