Skip to content

Commit 5db0445

Browse files
author
DHBaek
committed
feat: add docker compose
1 parent 5600229 commit 5db0445

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: '3'
2+
3+
services:
4+
stable-diffusion-v2-inpainting:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
container_name: stable-diffusion-v2-inpainting-worker
9+
env_file:
10+
- .env
11+
environment:
12+
- VHOST_NAME=stable-diffusion-v2-inpainting
13+
volumes:
14+
- <firebase_credential_path>:/app/key
15+
- <model_local_path>:/app/model
16+
networks:
17+
- diffusers-inpainting-api_dev
18+
restart: unless-stopped
19+
deploy:
20+
resources:
21+
reservations:
22+
devices:
23+
- driver: nvidia
24+
device_ids: [<gpu_id>]
25+
capabilities: [gpu]
26+
27+
networks:
28+
diffusers-inpainting-api_dev:
29+
external: true

0 commit comments

Comments
 (0)