https://github.com/owncloud-ops/opensearch
Custom container image for OpenSearch
https://github.com/owncloud-ops/opensearch
container oci opensearch
Last synced: 4 months ago
JSON representation
Custom container image for OpenSearch
- Host: GitHub
- URL: https://github.com/owncloud-ops/opensearch
- Owner: owncloud-ops
- License: apache-2.0
- Created: 2022-06-14T14:21:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2026-02-11T01:45:58.000Z (5 months ago)
- Last Synced: 2026-02-11T06:05:19.591Z (5 months ago)
- Topics: container, oci, opensearch
- Language: Shell
- Homepage: https://hub.docker.com/r/owncloudops/opensearch
- Size: 55.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opensearch
[](https://drone.owncloud.com/owncloud-ops/opensearch/)
[](https://hub.docker.com/r/owncloudops/opensearch)
[](https://quay.io/repository/owncloudops/opensearch)
Custom container image for [OpenSearch](https://github.com/opensearch/opensearch/).
## Ports
- 9200
- 9300
## Volumes
- /usr/share/opensearch/data
- /usr/share/opensearch/backup
- /usr/share/opensearch/log
## Bundled Plugins
- repository-s3
- ingest-attachment
## Environment Variables
```Shell
OPENSEARCH_ADMIN_ENABLED=true
OPENSEARCH_ADMIN_USERNAME=opensearch
OPENSEARCH_ADMIN_PASSWORD=opensearch
OPENSEARCH_CLUSTER_NAME=opensearch
OPENSEARCH_CLUSTER_MODE=false
# Enable this setting only to bootstrap a new cluster **not** for existing clusters.
OPENSEARCH_CLUSTER_INIT=false
# Comma-separated list
OPENSEARCH_INITIAL_MASTER_NODES=opensearch-node1
OPENSEARCH_NODE_NAME=opensearch-node1
OPENSEARCH_NODE_MANAGER=true
OPENSEARCH_NODE_DATA=true
OPENSEARCH_NODE_INGEST=true
# Comma-separated list
OPENSEARCH_DISCOVERY_SEED_HOSTS=opensearch-node1
OPENSEARCH_NETWORK_HOST=0.0.0.0
OPENSEARCH_NETWORK_PUBLISH_HOST=
OPENSEARCH_BOOTSTRAP_MEMORY_LOCK=true
OPENSEARCH_HTTP_PORT=9200
OPENSEARCH_HTTP_COMPRESSION=true
OPENSEARCH_DEFAULT_NUMBER_OF_REPLICAS=1
OPENSEARCH_PLUGINS_SECURITY_ENABLED=false
# If you enable securoty on a production mode cluster, transport ssl is mandatory
# and need to be configured.
OPENSEARCH_PLUGINS_SECURITY_SSL_TRANSPORT_ENABLED=false
OPENSEARCH_PLUGINS_SECURITY_SSL_TRANSPORT_KEY=node-key.pem
OPENSEARCH_PLUGINS_SECURITY_SSL_TRANSPORT_CERTIFICATE=node.pem
OPENSEARCH_PLUGINS_SECURITY_SSL_TRANSPORT_CERTIFICATE_AUTHORITIES=ca-bundle.trust.crt
OPENSEARCH_PLUGINS_SECURITY_SSL_TRANSPORT_HOSTNAME_VERIFICATION=false
OPENSEARCH_PLUGINS_SECURITY_HTTP_SSL_ENABLED=false
OPENSEARCH_PLUGINS_SECURITY_HTTP_SSL_KEY=node-key.pem
OPENSEARCH_PLUGINS_SECURITY_HTTP_SSL_CERTIFICATE=node.pem
OPENSEARCH_PLUGINS_SECURITY_HTTP_SSL_CERTIFICATE_AUTHORITIES=
OPENSEARCH_PLUGINS_SECURITY_RESTAPI_ROLES_ENABLED=all_access,security_rest_api_access
OPENSEARCH_PLUGINS_SECURITY_NODES_DN=
# Salt to use when generating the hash value. Only ASCII characters are allowed.
# A random one is generated by default. Need to be set to a static value on cluster setups.
OPENSEARCH_PLUGINS_SECURITY_COMPLIANCE_SALT=
OPENSEARCH_ROOT_LOG_LEVEL=info
OPENSEARCH_JVM_HEAP_SIZE=512m
OPENSEARCH_S3_CLIENT_DEFAULT_ACCESS_KEY=
OPENSEARCH_S3_CLIENT_DEFAULT_SECRET_KEY=
# Space-separated list of extra options to set for the Java JVM.
# Example: OPENSEARCH_JVM_EXTRA_OPTS=-Djava.option1=foo -Djava.option2=bar
OPENSEARCH_JVM_EXTRA_OPTS=
```
## Build
```Shell
docker build -f Dockerfile -t opensearch:latest . \
--build-arg OPENSEARCH_PLUGINS_INSTALL="repository-s3 ingest-attachment" \
--build-arg OPENSEARCH_PLUGINS_REMOVE="opensearch-security-analytics opensearch-skills opensearch-ml opensearch-sql opensearch-neural-search"
```
## License
This project is licensed under the Apache 2.0 License - see the [LICENSE](https://github.com/owncloud-ops/opensearch/blob/main/LICENSE) file for details.