Record the course the user chose on 2 December 2026 and make the container the only form of Anubis. - ADR 0021-0026: new roadmap (phases 10-24, readings per phase, the spec-to-ADR table, merge and tag only after the user's yes), Docker only, maths-only decisions, bans turned into limits on margin accounts, eToro Demo as currency venue and forward tests, strategy championship. ROADMAP rewritten from phase 10; STATE, CLAUDE.md, SVILUPPO, README, API-NOTES and the manuals without the desktop. - Remove the desktop: Anubis.Desktop, Anubis.Setup, deploy/windows, release-win and desktop-win, config.toml, PlatformKind, ANUBIS_PLATFORM, DPAPI with the ProtectedData package and the first-run wizard. Outside a container the server needs --data-dir, listens on 127.0.0.1 only and refuses foreign hosts; server and guard refuse --platform desktop with an Italian message and exit code 2. The demo keeps its key in a file and its error-page choices need no startup password. The diagnostics report says where the server runs from its own environment. - Lighter image: restore and publish for linux-x64 only, and leave out the Windows libraries ONNX Runtime copies anyway (829 MB to 410 MB on disk, /app from 282 MB to 42 MB). Rotating Docker logs in the Unraid template, the manual and the compose; backtest and learning run as one-shot commands. tasks dev uses artifacts/dev-data. refs #113 #114 #115 #78 #80 #81 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
60 lines
2.0 KiB
YAML
60 lines
2.0 KiB
YAML
# Development only (SPEC 3): the app plus a local PostgreSQL. Never used in production.
|
|
# Start: docker compose up --build Health: curl http://localhost:8787/health
|
|
# First access at http://localhost:8787 with ANUBIS_ADMIN_PASSWORD, then choose a new password.
|
|
services:
|
|
anubis:
|
|
build:
|
|
context: .
|
|
dockerfile: deploy/docker/Dockerfile
|
|
image: gitea.encke-hake.ts.net/balbosoft/anubis:dev
|
|
# The guard gives the engine up to 55 seconds to close in order (SPEC 9.3).
|
|
stop_grace_period: 60s
|
|
# Docker's own log files rotate, as in the Unraid template (ADR 0022).
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: 10m
|
|
max-file: "3"
|
|
ports:
|
|
- "8787:8787"
|
|
environment:
|
|
ANUBIS_DB_ENGINE: postgres
|
|
ANUBIS_DB_HOST: postgres
|
|
ANUBIS_DB_PORT: "5432"
|
|
ANUBIS_DB_NAME: anubis
|
|
ANUBIS_DB_USER: anubis
|
|
ANUBIS_DB_PASSWORD: ${ANUBIS_DB_PASSWORD:-anubis-dev}
|
|
# Development values only: a real installation chooses its own (deploy/unraid/anubis.xml).
|
|
ANUBIS_SECRET_KEY: ${ANUBIS_SECRET_KEY:-dev-only-secret-key-change-me-0123456789}
|
|
ANUBIS_ADMIN_PASSWORD: ${ANUBIS_ADMIN_PASSWORD:-dev-only-change-me}
|
|
ANUBIS_ALLOW_LIVE: "0"
|
|
TZ: Europe/Rome
|
|
volumes:
|
|
- anubis-data:/data
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
postgres:
|
|
image: postgres:18
|
|
# An init as PID 1 and a pg_isready that gives up before Docker does (ADR 0015): otherwise a slow health check
|
|
# leaves pg_isready to PostgreSQL, and its exit makes the server restart every connection.
|
|
init: true
|
|
environment:
|
|
POSTGRES_DB: anubis
|
|
POSTGRES_USER: anubis
|
|
POSTGRES_PASSWORD: ${ANUBIS_DB_PASSWORD:-anubis-dev}
|
|
ports:
|
|
- "127.0.0.1:55432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U anubis -d anubis -t 5"]
|
|
interval: 3s
|
|
timeout: 15s
|
|
retries: 20
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql
|
|
|
|
volumes:
|
|
anubis-data:
|
|
postgres-data:
|