Couchbase Server 5.5

    Manual

    In this lesson, you will install and launch version 5.5.1 of the Couchbase Server.

    If you would prefer to use a docker container instead, please proceed to the docker section

    • Download and install V5.5.1 of Couchbase Server. Follow the instructions specified in the appropriate platform specific install guide to install the same.

    • Windows Users You would need suitable admin level privileges to be able to authorize the install of Couchbase Server on your machine. The anti-virus software on your machine may prohibit the automatic installation of the service

    • In setup wizard, create Administrator account with user Administrator and password as password. createadminuser

    • As you follow the download instructions and setup wizard, make sure you keep all the services (data, query, and index) selected.

    cbs services
    • Install the sample bucket named travel-sample because it contains the data used in this tutorial. You can add the bucket from the "Sample Buckets" tab in the "Settings" menu in the admin console

    sample bucket
    • Create an RBAC user named admin with password password and Application Access to the travel-sample bucket. You can do this from the "Security" menu. These credentials will be used by the Sync Gateway to access the documents in this bucket. add rbac

    RBAC user
    • Create a Full text search index on travel-sample bucket called 'hotels'. You can do this from the "Search" menu. Just go with default index settings. add fts

    fts

    Try it out

    • Launch Couchbase Server (if not already runnning)

    • Log into the "Admin Console" with appropriate Administrator credentials you created during installation

    • Select the "Buckets" option from the menu on the left

    • Verify that you have around 31,000 documents in your travel-sample bucket =

    Docker (Local)

    • Create a local docker network named "workshop" if one does not exist already. Open a terminal window and run the following command bash $ docker network ls $ docker network create -d bridge workshop

    • To run the application in a container, you will first get the docker image from Docker Hub. Open a new terminal window and run the following. bash $ docker pull connectsv/server:5.5.1-enterprise

    • Once the command has completed you can start the application with the following.

    bash $ docker run -d --name cb-server --network workshop -p 8091-8094:8091-8094 -p 11210:11210 connectsv/server:5.5.1-enterprise

    • You can view the logs at any time by running the following command bash $ docker logs cb-server

    • It may take a few seconds for the server to startup. Verify that the docker image is running with following command bash $ docker ps

    Try it out

    • Launch Couchbase Server

    • Log into the "Admin Console" with username as "Administrator" and password as "password"

    • Select the "Buckets" option from the menu on the left

    • Verify that you have around 31,000 documents in your travel-sample bucket