Last active
December 1, 2024 14:33
-
-
Save lechuhuuha/f0d158cdb827a6dac95d0db18632f9de to your computer and use it in GitHub Desktop.
Setup minio + elasticsearch + apache tika + mongodb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Elasticsearch | |
sysctl -w vm.max_map_count=262144 | |
sudo sysctl -p | |
1. docker network create elastic | |
2. docker pull docker.elastic.co/elasticsearch/elasticsearch:8.16.0 | |
3. docker run -d --name es01 --net elastic -p 9200:9200 -it -m 2GB docker.elastic.co/elasticsearch/elasticsearch:8.16.0 | |
1. docker logs -f es01 | |
1. Đợi logs ra password và token | |
4. export ELASTIC_PASSWORD="your_password" | |
5. docker cp es01:/usr/share/elasticsearch/config/certs/http_ca.crt . | |
6. curl --cacert http_ca.crt -u elastic:$ELASTIC_PASSWORD https://localhost:9200 | |
Minio local single node | |
1. docker pull minio/minio | |
2. create file `/etc/default/minio` | |
1. paste content: | |
1. https://min.io/docs/minio/container/operations/install-deploy-manage/deploy-minio-single-node-single-drive.html#create-the-environment-variable-file | |
3. docker run -dt -p 9000:9000 -p 9001:9001 -v PATH:/mnt/data -v /etc/default/minio:/etc/config.env -e "MINIO_CONFIG_ENV_FILE=/etc/config.env" --name "minio_local" minio/minio:latest server --console-address ":9001" | |
4. docker logs minio_local | |
Apache tika | |
1. docker pull apache/tika:latest-full | |
2. docker run -d --name tika01 -p 127.0.0.1:9998:9998 apache/tika:latest-full |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment