Skip to content

Commit 4618790

Browse files
feat: added docker compose
1 parent 9134d44 commit 4618790

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ python handler.py --test_input='{"prompt": "a cat wearing a hat"}'
101101
# Build for AMD64
102102
docker build --platform linux/amd64 -t sdxl-turbo-worker .
103103

104-
# Run locally
104+
# Run locally with Docker
105105
docker run --gpus all -p 8000:8000 sdxl-turbo-worker
106+
107+
# Or run with Docker Compose
108+
docker-compose up
106109
```
107110

108111
## Deployment

docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
services:
2+
worker-sdxl-turbo:
3+
image: runpod/worker-sdxl-turbo:dev
4+
pull_policy: never
5+
6+
deploy:
7+
resources:
8+
reservations:
9+
devices:
10+
- driver: nvidia
11+
count: all
12+
capabilities: [gpu]
13+
14+
ports:
15+
- "8000:8000"
16+
17+
volumes:
18+
- ./var/runpod-volume:/runpod-volume

0 commit comments

Comments
 (0)