Skip to content

Deploying Rebase on Scaleway

Scaleway is a premier European cloud provider based in France with datacenters in Paris, Amsterdam, and Warsaw. It’s an excellent choice for organizations prioritizing EU data sovereignty.

We recommend utilizing Scaleway’s Managed Database for reliable Postgres backing and Serverless Containers to dynamically scale the Rebase Node.js application.

Scaleway’s Managed Databases offer automatic backups and high availability.

  1. In the Scaleway Console, go to PostgreSQL.
  2. Click Create a Database Instance.
  3. Choose a Region (e.g., Paris - PAR1).
  4. Select a Node Type (a standard Play2-Pico or Pro2-XXS works well).
  5. Add a database name (rebase_db) and define an incredibly secure user password.
  6. Once deployed, note down the Connection string (URI) from the dashboard. It will look like: postgres://user:password@ip:port/rebase_db

Scaleway Serverless Containers run standard Docker images. First, build the Rebase backend locally and push it to the Scaleway Container Registry.

  1. Go to Container Registry in the Scaleway Console and create a Namespace (e.g., rebase-apps).
  2. Log in to the registry from your local terminal using the provided instructions.
  3. Build your Rebase app using the generated Dockerfile:
docker build -t rg.fr-par.scw.cloud/rebase-apps/rebase-backend:latest ./backend
  1. Push the image:
docker push rg.fr-par.scw.cloud/rebase-apps/rebase-backend:latest

Now deploy the image completely serverless without managing infrastructure.

  1. Navigate to Serverless Containers.
  2. Click Create a Container.
  3. Choose the image you just pushed from the Container Registry.
  4. Set the Port to 3001.
  5. Under Environment Variables, add the following securely:
KeyValue
DATABASE_URLThe URI from your Managed Postgres step
JWT_SECRETA secure 32+ character random string for signing auth tokens
NODE_ENVproduction
  1. Click Deploy Container.

Scaleway will immediately provision the container and provide you with a public endpoint URL (e.g., https://rebase-backend-xxxx.functions.fnc.fr-par.scw.cloud).

Note: For strict data compliance, verify that your Scaleway Organization details reflect your European corporate entity.