docker compose up -d --build
docker run -e TZ=Asia/Ho_Chi_Minh -p 5432:5432 --name my-postgres -e POSTGRES_USER=rsuser -e POSTGRES_PASSWORD=abcd@1234 -e POSTGRES_DB=rsDatabase -d postgres
- Open a docker application
- Go to a docker container "my-postgres"
- Switch tab to "Exc"
apt-get update
apt-get install postgis
psql -d rsDatabase -U rsuser
CREATE EXTENSION postgis;
docker run -p 6379:6379 --name some-redis -d redis
Read document: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
docker run --name es01 --net elastic -p 9200:9200 -it -m 1GB docker.elastic.co/elasticsearch/elasticsearch:8.11.4
- Open a docker application
- Go to a docker container "es01"
- Switch tab to "Files"
- Open file "/usr/share/elasticsearch/config/elasticsearch.yml" and Select "Edit file"
- Change config
xpack.security.enabled: false
xpack.security.enrollment.enabled: false
xpack.security.http.ssl:
enabled: false
xpack.security.transport.ssl:
enabled: false
Then restart the container.
docker run --name kib01 --net elastic -p 5601:5601 -e "ELASTICSEARCH_HOSTS=http://es01:9200" docker.elastic.co/kibana/kibana:8.11.4
node ./src/scripts/createAdmin.js