mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user