Articles in this section
Category / Section

How to Enable Gzip Compression in Bold BI Docker Container

Published:

This article provides a step-by-step guide to enable Gzip compression in the Bold BI Docker container. Gzip compression can significantly reduce the size of transmitted data, improving load times and overall performance.

Steps to Enable Gzip

Step 1: Open the Docker Compose File

To begin, you need to open the docker-compose.yml file. You can do this by using the following command in your terminal:

nano docker-compose.yml

Step 2: Add Volume Configuration

Next, you will need to add the volume configuration to the docker-compose.yml file. Insert the following lines under the appropriate volumes service section:

volumes:
  - boldbi_data:/application/app_data
  - boldbi_nginx:/etc/nginx/sites-available/

Additionally, ensure that the volumes section at the bottom of the file includes the following:

volumes:
  boldbi_data:
  db_data:
  boldbi_nginx:

sshot-17.png

Step 3: Run the Docker Compose File

After saving your changes to the docker-compose.yml file, you can run the Docker Compose setup with the following command:

docker-compose up -d; docker-compose logs -f boldbi

This command will start the services defined in your Docker Compose file and display the logs for the BoldBI service.

Step 4: Log into the Bold BI Docker Container
To begin, access the Bold BI Docker container using the following command:

sudo docker exec -it boldbi /bin/bash

Step 5: Move to the Nginx Configuration Directory
Navigate to the Nginx configuration directory with the following command:

cd /etc/nginx/sites-available/

Step 6: Open the Nginx Configuration File
Open the boldbi-nginx-config file for editing. You can use nano text editor available in the container.

nano boldbi-nginx-config

Step 7: Add Gzip Configuration
Add the following lines to the boldbi-nginx-config file to enable Gzip compression:

gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

sshot-16.png

Step 8: Verify Gzip is Enabled
After saving the changes, you can check the Bold BI site to confirm that Gzip compression is now enabled.

Additional References

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
MA
Written by Mohamed Asme John Samsudeen
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied