Introduction
We use a an Ubuntu image using Docker to deploy Panintelligence containers. This allows the dashboard to use good features from docker such as health checks and self healing properties. We have a predefined docker-compose YAML script built into the AMI that deploys the dashboard.
...
Docker-compose script for Panintelligence containers: “/var/panintelligence/docker-compose.yml
“”
Code Block |
---|
version: "3" services: dashboard: image: ${SERVER_IMAGE}:${SERVER_TAG} container_name: dashboard restart: unless-stopped env_file: - dashboard.env ports: - 8224:8224 expose: - 8224 volumes: - ${PANINTELLIGENCE_KEYS_PATH}:/var/panintelligence/Dashboard/keys/ - ${PANINTELLIGENCE_EXCEL_PATH}:/var/panintelligence/Dashboard/excel-files/ - ${PANINTELLIGENCE_THEMES_PATH}:/var/panintelligence/Dashboard/tomcat/webapps/panMISDashboardResources/themes/ - ${PANINTELLIGENCE_IMAGES_PATH}:/var/panintelligence/Dashboard/tomcat/webapps/panMISDashboardResources/images/ - ${PAINTELLIGENCE_LOGS_PATH}:/var/panintelligence/Dashboard/tomcat/logs/ scheduler: container_name: scheduler image: ${SCHEDULER_IMAGE}:${SCHEDULER_TAG} restart: unless-stopped env_file: - scheduler.env volumes: - ${PANINTELLIGENCE_KEYS_PATH}:/var/panintelligence/Dashboard/keys/ renderer: container_name: renderer image: ${RENDERER_IMAGE}:${RENDERER_TAG} restart: unless-stopped env_file: - renderer.env pirana: container_name: pirana image: ${PIRANA_IMAGE}:${PIRANA_TAG} restart: unless-stopped env_file: - pirana.env excel-reader: container_name: excel-reader image: ${EXCEL_IMAGE}:${EXCEL_TAG} restart: unless-stopped env_file: - excel-reader.env |
...
Environment file | Container | Description |
---|---|---|
dashboard.env | dashboard | You will need to specify the external database credentials and Licence Ke, if you’re using “Panintelligence BYOL No Repo Database”. |
scheduler.env | scheduler | You will need to specify the external database credentials if you’re using “Panintelligence BYOL No Repo Database”. |
pirana.env | pirana | |
excel-reader.env | excel-reader | |
renderer.env | renderer | |
database.env | database | All Paintelligence Panintelligence products have an inbuilt “MariaDB” container for the Dashboard. If you’re using “Panintelligence BYOL No Repo Database”, Please specify your external database credentials you are using. |
...
You can create your own volume paths if you wish, you will have to change the environment variables in “/var/panintelligence/.
env”env
".
Environment variable | Default path | Description |
---|---|---|
| /var/panintelligence/keys | The security keys between the container. |
| /var/panintelligence/excel | To store excel files that you want to use inside the dashboard. |
| /var/panintelligence/themes | To store the themes for the dashboard. |
| /var/panintelligence/images | To store the images for the dashboard. |
| /var/panintelligence/logs | To store all the logs from the dashboard container. You will look in this volume to view any logs. |
| /var/panintelligence/data | Keeps a backup of your database container if you’re using it within the EC2 instance. |
...
To ensure the Panintelligence dashboard service is running when you start the AMI instance. We are using “panintelligence.service”, which ensures that the docker is enabled and the docker-compose scripts are running. If you wish to change the service on how it starts you can change it here:
“/etc/systemd/system/panintelligence.
service“service
"
Template of Panintelligence BYOL No Repo Database :
...
If you are a member of our private docker hub repository, You can also change the tags within the “/var/panintelligence/.
env” env
" and reboot the service for the latest docker container tags.
...