File size: 1,095 Bytes
f53b39e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
services:
frontend:
image: sam2/frontend
build:
context: ./demo/frontend
dockerfile: frontend.Dockerfile
ports:
- 7262:80
backend:
image: sam2/backend
build:
context: .
dockerfile: backend.Dockerfile
ports:
- 7263:5000
volumes:
- ./demo/data/:/data/:rw
environment:
- SERVER_ENVIRONMENT=DEV
- GUNICORN_WORKERS=1
# Inference API needs to have at least 2 threads to handle an incoming
# parallel cancel propagation request
- GUNICORN_THREADS=2
- GUNICORN_PORT=5000
- API_URL=http://localhost:7263
- DEFAULT_VIDEO_PATH=gallery/05_default_juggle.mp4
# # ffmpeg/video encode settings
- FFMPEG_NUM_THREADS=1
- VIDEO_ENCODE_CODEC=libx264
- VIDEO_ENCODE_CRF=23
- VIDEO_ENCODE_FPS=24
- VIDEO_ENCODE_MAX_WIDTH=1280
- VIDEO_ENCODE_MAX_HEIGHT=720
- VIDEO_ENCODE_VERBOSE=False
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
|