Skip to content

Commit

Permalink
feat: extend docker-compose example to multiple workers
Browse files Browse the repository at this point in the history
  • Loading branch information
bufferoverflow committed Feb 29, 2024
1 parent 18e183f commit c58d8d5
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions xinference/deploy/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
version: '3.8'

services:
xinference:
image: xprobe/xinference:latest
xinference-worker-1:
image: xprobe/xinference:nightly-main
ports:
- "30001:30001"
command: xinference-worker -e http://xinference-supervisor:9997 --worker-port 30001
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
driver: nvidia
count: all
xinference-worker-2:
image: xprobe/xinference:nightly-main
ports:
- "30002:30002"
command: xinference-worker -e http://xinference-supervisor:9997 --worker-port 30002
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
driver: nvidia
count: all
xinference-supervisor:
image: xprobe/xinference:nightly-main
ports:
- "9997:9997"
# volumes:
Expand All @@ -17,7 +41,7 @@ services:
# environment:
# # add envs here. Here's an example, if you want to download model from modelscope
# - XINFERENCE_MODEL_SRC=modelscope
command: xinference-local --host 0.0.0.0 --port 9997
command: xinference-supervisor --host 0.0.0.0 --port 9997 --log-level DEBUG
deploy:
resources:
reservations:
Expand Down

0 comments on commit c58d8d5

Please sign in to comment.