CodeLynq can run a project's application for you: it provisions a managed PostgreSQL database, a private image registry and a serverless container, in the EU. Your repository builds the application image, and CodeLynq deploys it.
Setting up hosting is for organization admins (connecting the hosting account) and for admins or the project's owner (environments, setup and domains).
1. Choose who owns the infrastructure
Open the project, go to Settings → Hosting (under Operations) and click Connect hosting. Choose:
- CodeLynq manages it: CodeLynq provisions and runs everything and bills you for it. There is nothing to set up on your side. This adds a recurring charge to your subscription; see the price shown in the app and the pricing page.
- Use my own Scaleway account: you own and pay for the infrastructure, and keep it if you stop using CodeLynq. Enter your Scaleway organization ID, Access key and Secret key. The secret key is checked before it is saved, stored encrypted and never shown again. Scaleway bills your account directly.
Click Connect.
2. Provision production
Under No production environment yet:
- Choose a Region - where the database and application run. You cannot change it later without rebuilding the environment.
- Click Provision production.
The environment goes from Queued to Building to Running. Building usually takes 5 to 10 minutes, mostly waiting for the database.
3. Connect your repository
When the environment is Running, click Setup. You get everything your GitHub repository needs to build and deploy:
- a workflow file to add to the repository,
- a Dockerfile, if your repository does not have one yet,
- the repository secrets to add under GitHub → Settings → Secrets → Actions. Each value has Show, Hide and Copy. One of them is a CodeLynq API token you create yourself - see API tokens.
Follow the instructions shown. From then on, a push to the default branch builds the image, and CodeLynq deploys it. A deploy target for the environment is added to the project's deployments, so releases are recorded like any other.
4. Add your own domain
Click Domain. Point a CNAME record at the CNAME target shown, enter your Domain and click Attach. The certificate is issued automatically once the record resolves.
Follow and manage environments
- The environment card shows the application's URL and the monthly price (or Billed by Scaleway to your own account).
- The Hosting page in the sidebar lists every hosted environment across projects, with its status, URL and monthly cost.
- A Failed environment has Try again.
- Delete removes the environment. This destroys the database and everything in it, and cannot be undone.