An open API service indexing awesome lists of open source software.

https://github.com/rqlite/docker-compose

Deploying rqlite with Docker Compose
https://github.com/rqlite/docker-compose

Last synced: 5 months ago
JSON representation

Deploying rqlite with Docker Compose

Awesome Lists containing this project

README

          

# Docker Compose

Docker Compose is a tool for defining and running multi-container applications.
It is the key to unlocking a streamlined and efficient development and deployment experience.

These directions assume you've already got Docker Compose installed.
If not, head over to [docs.docker.com/compose](https://docs.docker.com/compose/) to learn how to get set up.

---

### rqlite Implementation Examples

This documentation provides examples for setting up rqlite using Docker Compose, covering the following scenarios:

* **Single-node database**: A basic setup for a standalone rqlite instance.
* **General clustering with 3 nodes**: A manual configuration for a three-node rqlite cluster.
* **Automatic clustering with 3 nodes**: An example demonstrating automatic cluster formation with three rqlite nodes.

#### Conventions

The following naming conventions are used to make `compose.yaml` files easier to understand:

* **name**: `rqlite`
* **services**: `myrqlite-service-`
* **container_name**: `myrqlite-container-`
* **hostname**: `myrqlite-host-`
* **volumes**: `./rqlite-data/myrqlite-node-:/rqlite/file`.
For testing, we recommend creating a local `rqlite-data` folder using the command `mkdir -p rqlite-data`.
* **NODE_ID**: `myrqlite-node-`

The initial comment lines within each `compose.yaml` file describe the test versions at the time of publication.
However, the `latest` version can typically be used in the code.

```yaml
# Created: --

::
# Updated: --
::
# Language: Docker Compose version
# Images:
# - rqlite/rqlite:
# - :
# Project:
```

---

## [Single-node database](./rqliteSingleNode/)

## [General clustering with 3 nodes](./rqliteGeneralClustering/)

## [Automatic clustering with 3 nodes](./rqliteAutomaticClustering/)