How to deploy from private GitHub repository on Hostinger Docker Manager?

Updated 3 days ago

You can deploy projects from private GitHub repositories using Docker Manager by authenticating with a Personal Access Token (PAT).

Using Personal Access Token in repository URL

When setting up your deployment, format the repository URL like this:

https://<personal-access-token>@github.com/owner/repository

Replace <personal-access-token> with the actual token generated from your GitHub.

How to generate a Personal Access Token on GitHub

  1. Go to GitHub Personal Access Tokens settings.
  2. Click Generate new token.
  3. Set a name for the token and adjust the expiration period.
  4. Under Repository access, select either:
    • All repositories – if you want access to all private repos.
    • Only select repositories – if you want to restrict access.
  5. Under Repository permissions, make sure to grant at least Contents: Read-only.
  6. Click Generate token.
  7. Copy the token and keep it safe — you won’t be able to see it again.

With this setup, you can securely deploy applications from private GitHub repositories directly on Hostinger Docker Manager.