Docker security configuration
Additionally, you can set the Docker environment variable to true
. This change completely disables the demo installer.
Then make your changes to opensearch.yml
. For a full list of settings, see Security. This example adds (extremely) verbose audit logging:
To start the cluster, run docker-compose up
.
If you encounter any File /usr/share/opensearch/config/opensearch.yml has insecure file permissions (should be 0600)
messages, you can use to set file permissions before running docker-compose up
. Docker Compose passes files to the container as-is.
Using certificates with Docker
To use your own certificates in your configuration, add all of the necessary certificates to the volumes section of the Docker Compose file:
After replacing the demo certificates with your own, you must also include a custom opensearch.yml
in your setup, which you need to specify in the volumes section.
To start the cluster, run docker-compose up
as usual.