Skip to content

Add rechvix — self-hosted invoicing, CRM, inventory & accounting (India, Spain, UK, US tax) - #1045

Open
Raktim94 wants to merge 17 commits into
IceWhaleTech:mainfrom
Raktim94:add-rechvix-app
Open

Raktim94 wants to merge 17 commits into
IceWhaleTech:mainfrom
Raktim94:add-rechvix-app

Conversation

@Raktim94

@Raktim94 Raktim94 commented Sep 4, 2026 •

Copy link
Copy Markdown

Adds Rechvix 0.15.2 (AGPL-3.0), open-source business software connecting invoicing, CRM, multi-warehouse stock, purchasing and double-entry accounting, with tax workpapers for India, Spain, the UK and the US.

  • Images: ghcr.io/raktim94/rechvix-server and rechvix-worker 0.15.2 (amd64 and arm64), postgres:18.
  • Secrets are generated on first boot; no install-time prompts. Web UI on port 8090, then /setup.
  • Changes since the last push of this PR: 0.14.23 to 0.15.2 (CRM, field service, e-signature, recurring invoices, SEPA files, online shop, multi-country tax, redesigned dashboard).
  • Also available as a native Ubuntu/Debian package and on the Microsoft Store: https://rechvix.nodedr.com/install

ranjitraktim5-beep and others added 9 commits September 5, 2026 00:56
Self-hosted, multi-company/branch/warehouse billing, inventory, and
accounting platform with India GST/e-Invoice/e-Way Bill support.
Double-entry accounting, no subscription, no mandatory cloud dependency.

Images (ghcr.io/raktim94/rechvix-server:0.1.0,
ghcr.io/raktim94/rechvix-worker:0.1.0) are published and live on GHCR.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UCYv9KHDaaAjfbC8HLRLy6
…runtime role

Mirrors the fix already verified in the source repo (Raktim94/rechvix).
app and worker crash-looped forever with "password authentication failed
for user billing_app" on every install: the runtime role is normally
created by a real init script bind-mounted from the git clone, but a
CasaOS install has no repo access, so that bind mount starts out empty.
Added a postgres-init one-shot service (same postgres:18 image, no new
image needed) that generates the role-creation SQL onto that host
directory before postgres starts.

Verified end-to-end against the real published GHCR images in the source
repo before porting here: fresh install (all 4 containers healthy),
confirmed billing_app still has zero DDL privileges (RLS/role-separation
intact), a real login and a real bootstrap request both hit the database
and return proper responses, and a restart cycle doesn't break it.
Mirrors the fix in the source repo. $BILLING_APP_PASSWORD inside the
postgres-init heredoc was being blanked by Docker Compose's own
file-level interpolation before the container ever ran (CasaOS's
interpolation context has no such variable — only the container's own
runtime environment does). Escaped to $$BILLING_APP_PASSWORD so compose
leaves it for the container's shell to expand correctly.

Reproduced and fixed against a real CasaOS instance via its actual
install API, not just local testing.
…polation)

Mirrors the corrected fix in the source repo. CasaOS's real install path
interpolates the compose file twice; two dollar signs only survive one
pass. Verified against a real CasaOS instance's actual install API:
uninstall, reinstall with this fix, all three containers healthy, real
login request returns a proper response.
postgres-init tried to smuggle BILLING_APP_PASSWORD through the
container's own shell via an unquoted heredoc as $$$$BILLING_APP_PASSWORD,
betting on how many times CasaOS's install path re-interpolates $$. That
bet was wrong even for a single pass: $$ inside an unquoted heredoc is the
shell's PID variable, not an escape, so billing_app got created with a
literal garbage password and app/worker crash-looped on auth failure.
Rewritten to use plain ${BILLING_APP_PASSWORD} compose interpolation (the
same mechanism already working correctly everywhere else in this file)
plus \gexec instead of a $$-delimited DO block, so there's no $ left for
compose or the shell to mangle. Verified end-to-end with real Docker
Compose against the published GHCR images: postgres/migrate/app/worker
all come up healthy.

Also repointed icon/thumbnail/screenshot_link at this branch instead of
IceWhaleTech/CasaOS-AppStore@main, since PR IceWhaleTech#1045 is still unmerged and
that path 404s right now.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GMkbWQzc6bgBZmX5cu2da1
Same fix as main: postgres-init tried to smuggle BILLING_APP_PASSWORD
through the container's own shell via an unquoted heredoc, which broke
even on a single interpolation pass. Rewritten to use plain
${BILLING_APP_PASSWORD} compose interpolation plus \gexec instead of a
$$-delimited DO block.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GMkbWQzc6bgBZmX5cu2da1
Raktim94 pushed a commit to Raktim94/CasaOS-AppStore that referenced this pull request Sep 8, 2026
postgres-init tried to smuggle BILLING_APP_PASSWORD through the
container's own shell via an unquoted heredoc as $$$$BILLING_APP_PASSWORD,
betting on how many times CasaOS's install path re-interpolates $$. That
bet was wrong even for a single pass: $$ inside an unquoted heredoc is the
shell's PID variable, not an escape, so billing_app got created with a
literal garbage password and app/worker crash-looped on auth failure.
Rewritten to use plain ${BILLING_APP_PASSWORD} compose interpolation (the
same mechanism already working correctly everywhere else in this file)
plus \gexec instead of a $$-delimited DO block, so there's no $ left for
compose or the shell to mangle. Verified end-to-end with real Docker
Compose against the published GHCR images: postgres/migrate/app/worker
all come up healthy.

Also repointed icon/thumbnail/screenshot_link at this branch instead of
IceWhaleTech/CasaOS-AppStore@main, since PR IceWhaleTech#1045 is still unmerged and
that path 404s right now.
@sonarqubecloud

Copy link
Copy Markdown

@Raktim94 Raktim94 changed the title Add rechvix — self-hosted billing, inventory, accounting & India GST Add rechvix — self-hosted invoicing, CRM, inventory & accounting (India, Spain, UK, US tax) Oct 22, 2026
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants