ligbox-ops-platform/projects/finance/deploy/vm122-fossbilling
Ligbox Spec Hub 821675ab4a Reorganize monorepo into projects/wizard, ops-desk, finance
Specs stay at repo root (cross-VM). Move deploy and code into logical
projects with README per domain, updated manifest.yaml, and symlinks at
legacy paths for VM122 backward compatibility.
2026-06-19 18:55:03 +00:00
..
.env.example Reorganize monorepo into projects/wizard, ops-desk, finance 2026-06-19 18:55:03 +00:00
docker-compose.fossbilling.yml Reorganize monorepo into projects/wizard, ops-desk, finance 2026-06-19 18:55:03 +00:00
README.md Reorganize monorepo into projects/wizard, ops-desk, finance 2026-06-19 18:55:03 +00:00

FOSSBilling — VM122 (Spec 024)

Billing open source na mesma VM do Desk. OpenPanel não corre aqui — ver specs/024-openpanel-fossbilling/spec.md.

Pré-requisitos

  • Swap 2 GB recomendado: fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile
  • Porta 8092 livre em 10.10.10.122

Deploy

cd /opt/ligbox-ops-platform/deploy/vm122-fossbilling
cp .env.example .env
# editar MARIADB_PASSWORD
docker compose -f docker-compose.fossbilling.yml up -d

Abrir http://10.10.10.122:8092 e completar o wizard:

Campo Valor
DB host fossbilling-mariadb
DB name fossbilling
DB user fossbilling
DB password valor do .env

OpenPanel server manager

Após install, dentro do container ou volume:

docker compose -f docker-compose.fossbilling.yml exec fossbilling bash
wget -O /var/www/html/library/Server/Manager/OpenPanel.php \
  https://raw.githubusercontent.com/stefanpejcic/FOSSBilling-OpenPanel/main/OpenPanel.php

Configurar servidor OpenPanel (VM dedicada) na UI: System → Hosting plans and servers.

Monitorização

docker stats fossbilling fossbilling-mariadb
free -h

RAM alvo: stack billing < 1 GB em idle; VM122 total < 5 GB com Desk activo.