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
- Host: GitHub
- URL: https://github.com/rqlite/docker-compose
- Owner: rqlite
- License: mit
- Created: 2025-06-11T14:50:10.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-06-27T16:49:10.000Z (7 months ago)
- Last Synced: 2025-06-27T17:43:19.458Z (7 months ago)
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)