6ce55646d8
On auth failure during pull (access + refresh both expired), sync_plugin now fires SyncConfigureRequestEvent so the Connect modal reopens automatically instead of leaving the player with a silent error status. The modal's existing double-open guard keeps repeated failures idempotent. Also removes the unused SyncAuthResultEvent (results handled inline in SyncSetupPlugin via PendingAuthTask polling) and adds server deployment artifacts: Dockerfile (multi-stage, SQLX_OFFLINE), docker-compose.yml (SQLite volume, health-check), and .env.example for local development setup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
611 B
YAML
26 lines
611 B
YAML
services:
|
|
server:
|
|
build:
|
|
context: ..
|
|
dockerfile: solitaire_server/Dockerfile
|
|
image: solitaire-quest-server:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${SERVER_PORT:-8080}:8080"
|
|
volumes:
|
|
# SQLite database persisted outside the container.
|
|
- db-data:/app/data
|
|
environment:
|
|
DATABASE_URL: sqlite:///app/data/sol.db
|
|
JWT_SECRET: ${JWT_SECRET}
|
|
SERVER_PORT: 8080
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
db-data:
|