Compose prefissa le reti col project: la rete reale del portale è
omics_portal_omics_network (non omics_network). Aggiunti alias
thothii-core/thothii-frontend per il DNS usato dagli upstream nginx.
Verificato: portal nginx -> thothii-core:8787 = {ok}.
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
# ThothII — deploy embedded nel portale omics_portal (PRODUZIONE).
|
|
# core + frontend sulla rete esterna del portale (omics_portal_omics_network,
|
|
# creata da Compose col prefisso project). Alias thothii-core/thothii-frontend
|
|
# per il DNS usato dagli upstream nginx del portale.
|
|
# NESSUNA porta host esposta: il backend è invisibile dall'esterno.
|
|
#
|
|
# Prereq: il portale deve essere up (crea la rete):
|
|
# cd /home/chirone/omics_portal && docker compose up -d
|
|
# Poi: docker compose up -d --build
|
|
name: thothii
|
|
|
|
services:
|
|
core:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/core.Dockerfile
|
|
image: thothii-core:local
|
|
env_file: [deploy/thothii.env]
|
|
environment:
|
|
HOST: 0.0.0.0
|
|
PORT: "8787"
|
|
THT_HARNESS_DIR: /app/harness
|
|
THT_BIN: /opt/venv/bin/tht
|
|
PI_BIN: pi
|
|
AUTH_MODE: ${AUTH_MODE:-none}
|
|
SETTINGS_FILE: /data/settings/settings.json
|
|
MAX_PI_PROCESSES: ${MAX_PI_PROCESSES:-4}
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway" # Supabase :5438 + Ollama :11434 sull'host
|
|
volumes:
|
|
- /home/chirone/thothii-data:/data
|
|
- /home/chirone/thothii-data/pi-config:/home/thoth/.pi
|
|
- /home/chirone/chirone/etl/docs/evidence:/data/evidence:ro
|
|
restart: unless-stopped
|
|
networks:
|
|
omics_portal_omics_network:
|
|
aliases: ["thothii-core"]
|
|
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/frontend.Dockerfile
|
|
args:
|
|
VITE_BASE: /datamart-builder/assets/
|
|
VITE_BACKEND_URL: /datamart-builder/api
|
|
image: thothii-frontend:local
|
|
restart: unless-stopped
|
|
networks:
|
|
omics_portal_omics_network:
|
|
aliases: ["thothii-frontend"]
|
|
|
|
networks:
|
|
omics_portal_omics_network:
|
|
external: true
|