Files
Alby96andClaude Opus 5.5 24e20584d4 Write the manuals and fix what following them found
The manual, the runbook and the go-live list are written and checked claim by
claim against the code, and the installation is done from zero by following
them on both engines. That found real defects, now fixed:

- with SQLite a missing database file left no way to restore a backup: the
  choices appear, and the file is created only by the user's choice;
- an account whose difference vanished after the 15 minutes stayed prudent
  with no button, a missing stop could be left out for good, and a choice
  made while the broker was silent used old numbers;
- after "Ferma tutto" the positions could not be closed without restarting;
- a refused key looked like a silent broker: it has its own notice now;
- the split of the capital between the strategies of a broker (SPEC 13.5)
  could not be changed from the interface.

refs #72 #68

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:38:33 +01:00

47 lines
6.3 KiB
XML

<?xml version="1.0"?>
<!--
Anubis: template Docker per Unraid (SPEC 15.3, appendice E). Le istruzioni sono in docs/MANUALE.md.
L'immagine e' pubblicata nel registry dei pacchetti di Gitea, sotto l'organizzazione BalboSoft.
Copia il file in /boot/config/plugins/dockerMan/templates-user/ e scegli
"anubis" tra i template nella scheda Docker di Unraid.
-->
<Container version="2">
<Name>anubis</Name>
<Repository>gitea.encke-hake.ts.net/balbosoft/anubis:latest</Repository>
<Registry>https://gitea.encke-hake.ts.net/BalboSoft/-/packages/container/anubis/latest</Registry>
<Network>bridge</Network>
<Shell>sh</Shell>
<Privileged>false</Privileged>
<Support>https://gitea.encke-hake.ts.net/BalboSoft/Anubis/issues</Support>
<Project>https://gitea.encke-hake.ts.net/BalboSoft/Anubis</Project>
<Overview>Anubis è un bot di trading personale: azioni USA su Alpaca e crypto spot su OKX Europe, senza leva. Parte in simulazione e passa ai soldi veri solo con requisiti misurati e la conferma dell'utente. Il database si sceglie qui: PostgreSQL (un database vuoto, già creato, con un utente dedicato) oppure SQLite (un file nella cartella dei dati).</Overview>
<Category>Tools:Utilities Status:Beta</Category>
<WebUI>http://[IP]:[PORT:8787]/</WebUI>
<TemplateURL/>
<Icon>https://gitea.encke-hake.ts.net/BalboSoft/Anubis/raw/branch/main/deploy/unraid/anubis-icon.png</Icon>
<ExtraParams>--restart unless-stopped --memory=4g --stop-timeout 60</ExtraParams>
<Requires>Con PostgreSQL: un database vuoto e un utente dedicato, raggiungibili dal container.</Requires>
<Config Name="Porta dell'interfaccia" Target="8787" Default="8787" Mode="tcp" Description="Porta su cui si apre l'interfaccia web." Type="Port" Display="always" Required="true" Mask="false">8787</Config>
<Config Name="Cartella dei dati" Target="/data" Default="/mnt/user/appdata/anubis" Mode="rw" Description="Modelli, salvataggi, storico per la ricerca e registri tecnici. Con SQLite contiene anche il database." Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/anubis</Config>
<Config Name="Database" Target="ANUBIS_DB_ENGINE" Default="postgres|sqlite" Mode="" Description="postgres: usa il server PostgreSQL indicato nei campi qui sotto. sqlite: un file nella cartella dei dati, senza altri campi da compilare. La scelta si fa qui e non si cambia dall'interfaccia." Type="Variable" Display="always" Required="true" Mask="false">postgres</Config>
<Config Name="PostgreSQL: indirizzo" Target="ANUBIS_DB_HOST" Default="" Mode="" Description="Solo con postgres. Di solito l'indirizzo IP di Unraid; il nome del container PostgreSQL se i due stanno sulla stessa rete Docker personalizzata." Type="Variable" Display="always" Required="false" Mask="false"></Config>
<Config Name="PostgreSQL: porta" Target="ANUBIS_DB_PORT" Default="5432" Mode="" Description="Solo con postgres." Type="Variable" Display="always" Required="false" Mask="false">5432</Config>
<Config Name="PostgreSQL: nome del database" Target="ANUBIS_DB_NAME" Default="anubis" Mode="" Description="Solo con postgres. Deve esistere già ed essere dedicato a Anubis." Type="Variable" Display="always" Required="false" Mask="false">anubis</Config>
<Config Name="PostgreSQL: utente" Target="ANUBIS_DB_USER" Default="anubis" Mode="" Description="Solo con postgres." Type="Variable" Display="always" Required="false" Mask="false">anubis</Config>
<Config Name="PostgreSQL: password" Target="ANUBIS_DB_PASSWORD" Default="" Mode="" Description="Solo con postgres." Type="Variable" Display="always" Required="false" Mask="true"></Config>
<Config Name="Chiave dei segreti" Target="ANUBIS_SECRET_KEY" Default="" Mode="" Description="Stringa lunga e casuale, almeno 32 caratteri: cifra nel database le chiavi dei conti. Conservala: se cambia, le chiavi vanno reinserite." Type="Variable" Display="always" Required="true" Mask="true"></Config>
<Config Name="Password iniziale" Target="ANUBIS_ADMIN_PASSWORD" Default="" Mode="" Description="Password per il primo accesso all'interfaccia, dove se ne sceglie subito una nuova. Resta la chiave per le scelte della pagina d'errore del database." Type="Variable" Display="always" Required="true" Mask="true"></Config>
<Config Name="Fuso orario" Target="TZ" Default="Europe/Rome" Mode="" Description="Il tuo fuso orario: decide gli orari mostrati, il giorno dei limiti di rischio e i lavori notturni." Type="Variable" Display="always" Required="false" Mask="false">Europe/Rome</Config>
<Config Name="Soldi veri consentiti" Target="ANUBIS_ALLOW_LIVE" Default="0|1" Mode="" Description="0: il bot non può collegarsi a conti reali, qualunque cosa si faccia dall'interfaccia. 1: toglie questo blocco, ma questa versione non permette ancora di collegare conti reali (docs/GO-LIVE.md). Lascia 0." Type="Variable" Display="advanced" Required="false" Mask="false">0</Config>
<Config Name="Telegram: token del bot" Target="TELEGRAM_BOT_TOKEN" Default="" Mode="" Description="Facoltativo: si può inserire anche dall'interfaccia. Se lo compili qui, l'interfaccia lo mostra in sola lettura." Type="Variable" Display="advanced" Required="false" Mask="true"></Config>
<Config Name="Telegram: chat autorizzata" Target="TELEGRAM_CHAT_ID" Default="" Mode="" Description="Facoltativo: identificativo della chat che riceve gli avvisi e può dare comandi." Type="Variable" Display="advanced" Required="false" Mask="false"></Config>
<Config Name="Segnale di vita" Target="ANUBIS_HEARTBEAT_URL" Default="" Mode="" Description="Facoltativo: indirizzo di un servizio esterno da chiamare ogni minuto, che avvisa quando il bot smette di rispondere." Type="Variable" Display="advanced" Required="false" Mask="true"></Config>
<Config Name="Utente (PUID)" Target="PUID" Default="99" Mode="" Description="Utente a cui va la cartella dei dati e con cui gira l'applicazione. 99 è il valore normale su Unraid." Type="Variable" Display="advanced" Required="false" Mask="false">99</Config>
<Config Name="Gruppo (PGID)" Target="PGID" Default="100" Mode="" Description="Gruppo a cui va la cartella dei dati. 100 è il valore normale su Unraid." Type="Variable" Display="advanced" Required="false" Mask="false">100</Config>
<Config Name="Database: indirizzo completo" Target="ANUBIS_DB_URL" Default="" Mode="" Description="Facoltativo, per casi particolari: sostituisce i campi PostgreSQL separati." Type="Variable" Display="advanced" Required="false" Mask="true"></Config>
</Container>