For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create your GitHub Repo

Set up your repo

If you have a pre-existing repo you wish to use, feel free to skip this section

Your Github repo will be where you store your docker compose files, and anything else you wish to store alongside it. Placing these files in Github makes the risk of losing your compose files to a dead harddrive impossible.

You can also store your Ansible playbooks in there too Ansible

Create a Github repo

Follow GitHubs documentation on creating a repo

Recommended: Set your repo as private

I would recommend creating a Private repo as this hides it from the public internet. The advantage of this is it reduces the risk of leaking credentials, API keys etc if you accidentally save them into a file on the repo. The best way to secure your repo is to use variables and secrets

If you are using a private repo,

If you are using a public repo, skip this section

Create a Private Access Token for Portainer

As your repo is private, you will need to create a PAC for Portainer to use and access the repo

  1. Click on your profile in the top right, then select Settings

  2. On the left, click on Developer Settings

  3. Click on Personal Access Tokens, then 'Tokens (classic)'

  4. Click on 'Generate new token', then select 'Classic'

  5. Input the below information

    You can expire the credential if you want, though this may break Portainer
  6. Scroll down and click on 'Generate Token'

  7. Save your PAC to your password vault

Last updated