2026-04-20 12:27:07 +08:00
|
|
|
name: ashim
|
|
|
|
|
|
|
|
|
|
# NVIDIA GPU version
|
|
|
|
|
# Usage: docker compose -f docker-compose-gpu.yml up -d
|
|
|
|
|
# Requires: NVIDIA GPU + nvidia-container-toolkit (Linux/Windows WSL2 only)
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
ashim:
|
|
|
|
|
build:
|
|
|
|
|
context: ..
|
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
|
image: ashim:latest
|
|
|
|
|
container_name: ashim
|
|
|
|
|
ports:
|
|
|
|
|
- "1349:1349"
|
|
|
|
|
volumes:
|
|
|
|
|
- ashim-data:/data
|
|
|
|
|
- ashim-workspace:/tmp/workspace
|
|
|
|
|
environment:
|
|
|
|
|
- AUTH_ENABLED=true
|
|
|
|
|
- DEFAULT_USERNAME=admin
|
|
|
|
|
- DEFAULT_PASSWORD=admin
|
|
|
|
|
- SKIP_MUST_CHANGE_PASSWORD=${SKIP_MUST_CHANGE_PASSWORD:-false}
|
2026-04-20 15:03:56 +08:00
|
|
|
- RATE_LIMIT_PER_MIN=${RATE_LIMIT_PER_MIN:-50000}
|
2026-04-20 12:27:07 +08:00
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:1349/api/v1/health"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
start_period: 60s
|
|
|
|
|
retries: 3
|
|
|
|
|
logging:
|
|
|
|
|
driver: json-file
|
|
|
|
|
options:
|
|
|
|
|
max-size: "10m"
|
|
|
|
|
max-file: "3"
|
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
reservations:
|
|
|
|
|
devices:
|
|
|
|
|
- driver: nvidia
|
|
|
|
|
count: all
|
|
|
|
|
capabilities: [gpu]
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
ashim-data:
|
|
|
|
|
ashim-workspace:
|