Create your GitHub Repo
Set up your repo
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
Version history is always there, so if you accidentally save a password or API key its saved forever. The only way to remove it is to delete the repo.
If you are using a private repo,
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
Click on your profile in the top right, then select Settings
On the left, click on Developer Settings
Click on Personal Access Tokens, then 'Tokens (classic)'
Click on 'Generate new token', then select 'Classic'
Input the below information

You can expire the credential if you want, though this may break Portainer Scroll down and click on 'Generate Token'
Save your PAC to your password vault
Last updated