hse-python-assistant/docker-compose.yaml

28 lines
576 B
YAML
Raw Normal View History

2024-10-16 20:24:08 +00:00
version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
- ./data:/app/data
2024-10-19 18:10:47 +00:00
- <your_path_here>:/app/model # Mount model path to the container
2024-10-16 20:24:08 +00:00
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=1
2024-10-19 18:10:47 +00:00
- NVIDIA_VISIBLE_DEVICES=all
2024-10-16 20:24:08 +00:00
command: poetry run python main.py
2024-10-19 18:10:47 +00:00
deploy:
mode: replicated
replicas: 1
resources:
reservations:
devices:
- driver: nvidia
device_ids: [ '0' ]
capabilities: [ gpu ]
2024-10-16 20:24:08 +00:00