Installation
After collecting the required information in the previous step, follow these steps to get a working setup.
With the above information, you can configure the environment in your hosting infrastructure and start the container.
The Docker images are hosted on GHCR.
Main branch (Recommended)
Most instances probably want to use the
main
branch which is updated less often and more stable.
ghcr.io/pubkeyapp/pubkey-link:latest
Dev branch
If you want to run the latest and greatest, or you like living on the edge, you can run the
dev
branch.
ghcr.io/pubkeyapp/pubkey-link:dev
After you start the container, the links on how to access the UI will be logged in the terminal.
Northflank Installation
Follow the steps below to deploy PubKey Link on Northflank. This method allows you to easily manage databases, secrets, and services using Northflank’s interface.
-
Create a New Project
- Choose a name and region for your project
-
Set Up Addons
- Navigate to the Addons tab.
- Select the databases you need (PostgreSQL and Redis).
- Choose a name, select the latest version, and enable the Deploy with TLS option.
- Configure the resources you want to allocate to each database.
- Navigate to the Addons tab.
-
Configure Secrets
-
Go to the Secrets tab.
- Choose a name for your secrets group (e.g.,
databases
). - Set the Type field to
Secret Values
. - Ensure the Scope field is set to
Runtime
. - Under the Secrets section, add all the environment variables you collected earlier.
- Link the created Postgres and Redis addons:
- Configure the Postgres addon to set the
POSTGRES_URI
variable with the aliasDATABASE_URL
. - Configure the Redis addon to set the
REDIS_MASTER_URL
variable with the aliasREDIS_URL
.
- Configure the Postgres addon to set the
- Choose a name for your secrets group (e.g.,
-
-
Create and Configure a Service
-
Go to the Services tab.
- Create a new service (e.g., name it
api
). - Select the Deploy Docker Image option.
- Under the Deployment section, choose External Image and paste the PubKey image URL (
ghcr.io/pubkeyapp/pubkey-link:latest
orghcr.io/pubkeyapp/pubkey-link:dev
).
- Create a new service (e.g., name it
-
In the Networking section:
-
Check Publicly expose this port to the internet.
-
Under Custom domains & security rules, select the domain you previously created and linked. Check the box to disable the default
.run
domain.
-
-
Allocate the necessary resources to the service.
-