Add leafweb-vision service with YOLO Streamlit web UI
Runs ultralytics/ultralytics with yolo streamlit-predict on port 8501, NVIDIA GPU passthrough, and npm-network for reverse proxy access.
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
services:
|
||||||
|
leafweb-vision:
|
||||||
|
image: ultralytics/ultralytics:latest
|
||||||
|
container_name: leafweb-vision
|
||||||
|
restart: unless-stopped
|
||||||
|
command: yolo streamlit-predict
|
||||||
|
ports:
|
||||||
|
- "8501:8501"
|
||||||
|
volumes:
|
||||||
|
- /srv/leafweb-vision/data:/data
|
||||||
|
- /srv/leafweb-vision/runs:/root/runs
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
reservations:
|
||||||
|
devices:
|
||||||
|
- driver: nvidia
|
||||||
|
count: all
|
||||||
|
capabilities: [gpu]
|
||||||
|
environment:
|
||||||
|
- TZ=America/New_York
|
||||||
|
- STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
||||||
|
- STREAMLIT_SERVER_PORT=8501
|
||||||
|
- STREAMLIT_SERVER_HEADLESS=true
|
||||||
|
networks:
|
||||||
|
- npm-network
|
||||||
|
|
||||||
|
networks:
|
||||||
|
npm-network:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user