Skip to content

Commit

Permalink
feat: add docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
589hero committed Dec 25, 2024
1 parent 5600229 commit 5db0445
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: '3'

services:
stable-diffusion-v2-inpainting:
build:
context: .
dockerfile: Dockerfile
container_name: stable-diffusion-v2-inpainting-worker
env_file:
- .env
environment:
- VHOST_NAME=stable-diffusion-v2-inpainting
volumes:
- <firebase_credential_path>:/app/key
- <model_local_path>:/app/model
networks:
- diffusers-inpainting-api_dev
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: [<gpu_id>]
capabilities: [gpu]

networks:
diffusers-inpainting-api_dev:
external: true

0 comments on commit 5db0445

Please sign in to comment.