Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.87 KB

how-to-configure-ssl-for-docker-compose.md

File metadata and controls

52 lines (37 loc) · 1.87 KB

How to configure SSL for Bold BI application.

Single container deployment

  1. From the docker-compose yaml file add below line under volume in the boldbi service.

    - nginx_data:/etc/nginx/sites-available
    Image
  2. Add below block for nginx in volume and allocate a directory in your host machine to store the shared folders for applications’ usage. Replace the directory path with <host_path_nginx_data>in docker-compose.yml file and up a container.

    nginx_data:
      driver: local
      driver_opts:
        type: 'none'
        o: 'bind'
        device: '<host_path_nginx_data>'

    For example,
    Windows: device: 'D:/boldbi/nginx_data' and device: 'D:/boldbi/nginx_data'
    Linux: device: '/var/boldbi/nginx_data' and device: '/var/boldbi/nginx_data'

  3. Copy the SSL certificate .key and .crt format and paste inside the nginx mount folder.

  4. Refer below document for SSL changes in nginx file .

    https://github.com/boldbi/boldbi-docker/blob/main/docs/ssl-termination.md

  5. Add - 443:443 in ports section from docker-compose.yaml file.

  6. Restart the Bold BI container using below command.

    docker restart <container-name or container ID>

Multi container deployment

  1. Add a SSL certificate path with .key and .crt file in docker-compose yaml file. docker-compose.yml

  2. Refer below document for SSL changes in nginx file .

    https://github.com/boldbi/boldbi-docker/blob/main/docs/ssl-termination.md

  3. Uncomment the - "443:443" in reverse-proxy service.

  4. Restart the Nginx container using below command.

    docker restart <container-name or container ID>