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 20, 2024
1 parent de99e9f commit a436ca7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '3'

services:
swinlr-large-x4:
image: devainetwork/sr-worker
container_name: swinlr-large-x4-worker
env_file:
- .env
environment:
- VHOST_NAME=swinlr-large-x4
volumes:
- <firebase_credential_path>:/app/key
- <model_local_path>:/app/model
networks:
- sr-fastapi_dev
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: [<gpu_id>]
capabilities: [gpu]

networks:
sr-fastapi_dev:
external: true

0 comments on commit a436ca7

Please sign in to comment.