refactor: unify feature install UI with global store, add healthcheck and GPU profile to compose

Replace FeatureInstallPrompt's local SSE/polling with useFeaturesStore
so install progress, errors, and recovery are handled globally — works
across navigation, logout/login, and partial downloads. Shows fun
progress messages and ETA matching the settings page.

Add compose healthcheck and optional GPU profile (--profile gpu).
This commit is contained in:
ashim-hq
2026-04-19 21:00:19 +08:00
parent fc98037eb1
commit 62dd1ae211
2 changed files with 101 additions and 120 deletions
+21 -1
View File
@@ -3,7 +3,7 @@ services:
build:
context: ..
dockerfile: docker/Dockerfile
image: ashimhq/ashim:latest
image: ashim:latest
container_name: ashim
ports:
- "1349:1349"
@@ -15,12 +15,32 @@ services:
- DEFAULT_USERNAME=admin
- DEFAULT_PASSWORD=admin
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"
ashim-gpu:
extends:
service: ashim
container_name: ashim-gpu
profiles:
- gpu
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
ashim-data:
ashim-workspace: