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
- Go to GitHub Personal Access Tokens settings.
- Click Generate new token.
- Set a name for the token and adjust the expiration period.
- Under Repository access, select either:
- All repositories – if you want access to all private repos.
- Only select repositories – if you want to restrict access.
- Under Repository permissions, make sure to grant at least Contents: Read-only.
- Click Generate token.
- 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.