How to create a Stack Template from LAMP Alp 2.4 10.4 7.4 in Portainer - germain-italic/docker GitHub Wiki
1. Open Portainer and go to App Templates > Custom Templates > Add Custom Template
http://localhost:9000/#!/1/docker/templates/custom
- Title: LAMP-Alp-2.4-10.4-7.4
- Description: LAMP-Alp-2.4-10.4-7.4
- Build method: Repository
- Repository URL: https://github.com/Germain-Italic/docker
- Repository reference: refs/heads/main
- Compose path: LAMP-Alp-2.4-10.4-7.4/docker-compose.yml
- Actions > Create custom template
2. Go to Stacks > Add stack
http://localhost:9000/#!/1/docker/stacks/newstack
_In the following example, I am creating a template for Prestashop 1.7.7.3
- Name: Prestashop
- Build method: Custom template
- Template: LAMP-Alp-2.4-10.4-7.4
- Environment variables: customize them from .env.dist, sample:
_I advise you to click 20 times on "add environment variable" and then from your favorite editor with .env open: copy line / alt+tab / ctrl+shift+leftarrow / ctrl+x / tab / ctrl+v / alt+tab / downarrow / home / ctrl+shift+end / alt+tab
- Actions > Deploy the stack