Giter Site home page Giter Site logo

backend's Introduction

Docker

Docker Compose

docker compose up -d --build

PostgreSQL

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

Add postgis

  • 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;

Redis

docker run -p 6379:6379 --name some-redis -d redis

Elastic search

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.

Kibana

docker run --name kib01 --net elastic -p 5601:5601 -e "ELASTICSEARCH_HOSTS=http://es01:9200" docker.elastic.co/kibana/kibana:8.11.4

System

Create admin account

node ./src/scripts/createAdmin.js

Synchronize a PostgreSQL database with Elasticsearch using Logstash, Docker and Docker-compose

https://medium.com/@carmelwenga/synchronize-a-postgresql-database-with-elasticsearch-using-logstash-docker-and-docker-compose-a0b77573713b

backend's People

Contributors

lehuyvu7971208 avatar duyhaahasoft avatar

Watchers

 avatar

backend's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.