Creating and attaching a volume to the hcl-compass Docker container
This quick start guide shows you how to create and attach a volume to the hcl-compass Docker container.
Before you begin
Note: Using HCL Compass on Docker and Docker Compose is not
supported when deployed in a production environment. To use HCL Compass in a container in a production
environment, deploy HCL Compass to a
Kubernetes environment.
To access
hcl-compass container files, information
such as log files and configuration files outside of the container, we can create and attach a
volume to the hcl-compass container or
create bind mounts. Volumes are the preferred mechanism for persisting data generated by and
used by Docker containers. Using volume or bind mounts allows you to monitor all log and
configuration files. You can also remove data from the hcl-compass container itself so that the container
can be cleanly shut down and destroyed at any time without any data loss. If a new hcl-compass container is created to replace the
old one, you can connect the new container to the same data store or bind it to the same
disk.For more information, see Getting started with HCL Compass Helm Chart.