Skip to content

Latest commit

 

History

History
46 lines (42 loc) · 3.71 KB

INSTALLwPortainer.md

File metadata and controls

46 lines (42 loc) · 3.71 KB

Deploy using Portainer

It is assumed that Docker and Portainer are already setup and working.

There are two options for deployment using Portainer:

1 - Deploy using Dockerfile via 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

2 - Deploy using docker-compose.yml via Portainer - recommended

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:

image

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:

image

iv. Scroll further down the Create stack page. In the Environment variables section press the blue Advanced Mode link:

image

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:

image image

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:

image

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

image

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:

image