Couchbase can be run using Docker Compose on a single host or as part of a multi-host Swarm-mode cluster. To start Couchbase on a single host, use the command `docker-compose up -d` and then connect to the server at http://localhost:8091 using credentials Administrator/password. N1QL queries can be executed using the `cbq` shell. The service can be terminated using the command `docker-compose down`. In a Swarm-mode cluster, Docker allows multiple hosts to be configured in a cluster, and the Compose file can be used to start the cluster by running the command `docker deploy --compose-file=docker-compose.yml couchbase`. The status of the service can be seen using the command `docker service ls`, and tasks/containers running inside the service can be checked using the command `docker service ps couchbase_db`.