This buildpack aims at installing a Nocodb instance on Scalingo and let you configure it at your convenance.
Simply deploy by cliking on this button:
Or create an app. You must have an add-on database postgresql
.
Add this buildpack environment variable to your Scalingo application to install the Nocodb server:
BUILDPACK_URL=https://github.com/MTES-MCT/nocodb-buildpack#main
And other environment variables are set by example in a .env.sample
file.
PORT
and SCALINGO_POSTGRESQL_URL
are provided by Scalingo.
Addon configuration by default:
NOCODB_DB=$SCALINGO_POSTGRESQL_URL # SCALINGO_POSTGRESQL_URL is provided by scalingo at app boot step
Warning NOCODB_DB
and change sslmode
if prefer
is unknown by nocodb.
By default the buildpack install the latest release.
All other environment variables are specific to nocodb, see documentation.
You set environment variables in .env
:
cp .env.sample .env
Run an interactive docker scalingo stack:
docker run --name nocodb -it -p 8080:8080 -v "$(pwd)"/.env:/env/.env -v "$(pwd)":/buildpack scalingo/scalingo-18:latest bash
And test in it:
bash buildpack/bin/detect
bash buildpack/bin/env.sh /env/.env /env
bash buildpack/bin/compile /build /cache /env
bash buildpack/bin/release
Run Nocodb server:
export PATH=/build/nodejs/bin:/build/nocodb:$PATH
run /build/nocodb /build/nodejs
Check http://localhost:8080/dashboard.
You can also use docker-compose in order to test with a complete stack (db):
docker-compose up --build -d
.env.sample
is configured to work with this stack.