Portainer
Portainer is a powerful open-source container management tool that allows you to easily manage and deploy containers. Creating a new project in Portainer helps you organize and group containers, making it easier to manage them.
Creating a new portainer project
Follow the steps below to create a new project in Portainer:
- Open a web browser and navigate to the Portainer web interface.
- Login
- Once logged in, you will be directed to the Portainer dashboard. Select the appropriate Environnement.
itwebcloudgateway: Cloud gateway machine that reverse proxies all web requests to appropriate docker project.itwebcloudprod: Cloud production machine for all front-end production websites.itwebclouddatabase: Cloud database machine used for web projects, currently mostly used for Strapi.itvxwebdmz: Internal server for our backend services.itvxwebstagingdmz: Internal server for all staging projects.
- Navigate to the containers section.
- Click the
Add Containerbutton. - In the Create container form, you will need to provide the following information, you can ignore sections not mentioned in the list below :
- Name: Use the same name as the github repository and dockerhub repository.
- Registry: Make sure to select the
dockerhub_authoption to be able to access our private repositories in dockerhub - Image: Input
beaulieucanada/projectname:(latest or staging depending on environnement)the end result should look like thisbeaulieucanada/projectname:latest - Network ports configuration: Click the
publish a new network portbutton.- On the left side input the port you want to use to call your project, it should be different than every other installed projects.
- On the right side input the port your projects uses inside the container
- Advanced container settings:
- Click on the
Envtab and input any environnement variables your project needs to run - Click on the
Restart policymake sure to set it toUnless stopped
- Click on the
- Click the
Deploy the containerbutton - 🎉Congratulations you have deployed your project using docker! 🎉
