# Settings for the manual deployment (docker-compose.yml in this folder). Docker
# Compose reads it for the values below, and the webapi and indicadores
# containers receive it as their environment.

# --- Project ---
# Prefix of every container, network, volume and image. Change it (and the
# ports) to run a second copy next to this one.
COMPOSE_PROJECT_NAME=sitio-a

# --- Published ports ---
# Address the ports bind to: 0.0.0.0 for every interface, 127.0.0.1 for this
# machine only.
BIND_ADDRESS=0.0.0.0
# The application (nginx: pages and proxy to the API). Open this one.
WEBAPP_PORT=5310
# The API, direct.
WEBAPI_PORT=5311
# The simulated hospital's MySQL (user/password hospital/hospital).
HOSPITAL_PORT=5312

# --- Simulated hospital contents ---
# Patients generated per project, the generator's seed and reference date.
N=200
N_CACU=300
N_CAMA=300
SEMILLA=7
REFERENCIA=2026-01-01
TEA_ALTERACIONES_VALIDADAS=1
# Folder of real EDF files, as an absolute path: each file becomes one more TEA
# child (after the N synthetic ones), a confirmed autism case whose only EEG
# carries that file. Empty: only the synthetic EDFs. Changing it needs
# `docker compose down -v` (a populated hospital is left alone).
EDF_CARPETA=/home/milk/datos/edf
DASK_SCHEDULER_ADDRESS=tcp://10.0.10.41:30786
# Gobernanza > TEA · EEG: the dashboard port and worker count the cluster card checks.
TEA_DASK_DASHBOARD_PORT=30787
TEA_DASK_EXPECTED_WORKERS=40
# Folder (in the container) holding one subfolder per reference cohort, and the host folder mounted there.
TEA_REFERENCE_ROOT=/referencia
REFERENCIA_CARPETA=../manual-deploy/referencia
# The indicator cycle leaves the EEGs unanalysed until the baselines are in production: upload them in
# Gobernanza > TEA · EEG, promote, then analyse there. Set to auto to analyse in the cycle as before.
EEG_ANALYSIS_CLUSTER=off

# --- Patient-level views ---
# Any value turns on the routes that return one patient's data (the follow-up
# lists, TEA's patient summary). They exist for simulated data only: leave it
# unset on a platform that holds real patients.
DEV_REVISION=manual-deploy

# --- Platform (same variables as ISSSTELEON/.env.example) ---
# Target databases. Unset, each is a SQLite file in this project's
# webapi_data volume.
# CACU_DATABASE_URL=mysql+pymysql://isss_app:CHANGE_ME@db-host:3306/isss_cacu
# CAMA_DATABASE_URL=mysql+pymysql://isss_app:CHANGE_ME@db-host:3306/isss_cama
# TEA_DATABASE_URL=mysql+pymysql://isss_app:CHANGE_ME@db-host:3306/isss_tea
# GOVERNANCE_DATABASE_URL=mysql+pymysql://isss_app:CHANGE_ME@db-host:3306/isss_governance
# WEBAPI_MAX_UPLOAD_MB=200
# WEBAPI_WORKERS=2
# WEBAPI_TIMEOUT=600
# EXTRACTION_OCR_LANG=spa+eng
