YAML File Deployment
Prerequisites
- Obtained KWDB docker image.
- The hardware, operating system, software dependencies, and ports of the node to be deployed meet the installation deployment requirements.
- The user performing the installation is the
rootuser or a regular user withsudoprivileges:rootusers or users with passwordlesssudoconfigured will not be prompted for a password during script execution.- Users without passwordless
sudowill be prompted to enter a password to escalate privileges.
- If the user is not a
rootuser, add the user to thedockergroup by runningsudo usermod -aG docker $USER.
Steps
Create the
docker-compose.ymlconfiguration file.Note
The
imageparameter must match the image name obtained after importing theKaiwuDB.tarfile or the pulled image name.Example:
version: '3.3' services: kwdb-container: image: "kwdb/kwdb:3.0.0" container_name: kaiwudb-experience hostname: kaiwudb-experience ports: - 8080:8080 - 26257:26257 ulimits: memlock: -1 networks: - default restart: on-failure ipc: shareable privileged: true environment: - LD_LIBRARY_PATH=/kaiwudb/lib tty: true working_dir: /kaiwudb/bin command: - /bin/bash - -c - | /kaiwudb/bin/kwbase start-single-node --insecure --listen-addr=0.0.0.0:26257 --advertise-addr=127.0.0.1:26257 --http-addr=0.0.0.0:8080 --store=/kaiwudb/deploy/kaiwudbSart KWDB.
docker-compose up -dAfter deployment is complete, you can connect to and manage KWDB via kwbase CLI, KaiwuDB JDBC, or KaiwuDB Developer Center.