It is assumed that Docker and Portainer are already setup and working.
There are two options for deployment using Portainer:
This is for those who can't (or don't want to) use the pre-built images from Dockerhub. For example you may have an architecture for which there is no image on Dockerhub.
See this document for instructions: INSTALLwPortDFile.md
This will be the preferred option for most people who are using Portainer.
i. Login to your Portainer instance. Select the Environment where the deployment will be made
ii. Select the 'Volumes' link from the left menu. Click the blue '+ Add volume' button. In the Create volume page, enter tesla_ble_mqtt
in the Name field and press the blue 'Create the volume' button:
iii. Select the 'Stacks' link from the left menu. Click the blue '+ Add Stack' button. In the 'Create stack' page, enter tesla_ble_mqtt
in the Name field. Copy and Paste the contents of docker-compose.yml into the Web editor box:
iv. Scroll further down the Create stack page. In the Environment variables section press the blue Advanced Mode link:
v. A box to enter environment variables will open up. Copy and Paste the contents of stack.env into the box, and press the blue 'Deploy the stack' button:
vi. After some time, if all is well, the message 'Success. Stack successfully deployed' will briefly pop-up, and you will be returned to the 'Stacks list' page. Click the newly created tesla_ble_mqtt stack to enter the 'Stack details' page for the new stack. Click the red 'Stop this stack' button, then click the 'Editor' tab:
vii. Scroll down to the 'Environment variables' section. Enter the values required for your setup in the respective fields and when completed press the 'Update the stack' button. Use stack.env as a reference
vii. If all is well, the message 'Success. Stack successfully deployed' will briefly pop-up, and you will be returned to the 'Stacks list' page. Click the tesla_ble_mqtt stack to enter the 'Stack details' page for the new stack. In the Containers section click the tesla_ble_mqtt container to enter the 'Container details' page. From here you can view the logs by pressing the Logs link in the 'Container status' section. Succesful logs look something like this at startup: