Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heikkilamarko/litestream-demo
Litestream Demo
https://github.com/heikkilamarko/litestream-demo
golang litestream minio sqlite
Last synced: 5 days ago
JSON representation
Litestream Demo
- Host: GitHub
- URL: https://github.com/heikkilamarko/litestream-demo
- Owner: heikkilamarko
- License: mit
- Created: 2022-01-04T19:07:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-12T10:43:22.000Z (4 months ago)
- Last Synced: 2024-07-12T12:20:02.209Z (4 months ago)
- Topics: golang, litestream, minio, sqlite
- Language: Go
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Litestream Demo
## 1. Start Services
```bash
docker compose up --build -d
```## 2. Navigate to MinIO Console
```bash
open http://localhost:9001
```### Sign In
See: `/env/minio.env`
### Create Litestream Bucket
Bucket name: `litestream`
## 3. Query and Create Items
Postman Collection: `postman_collection.json`
## 4. Verify Database Restore
### Delete the SQLite Database
Comment out the SQLite database `COPY` instruction in `/api/Dockerfile`
```dockerfile
# SQLite database:
# COPY items.db /var/api/data/
```### Build and Restart the API Service
```bash
docker compose up --build -d
```### Query Items
Postman Collection: `postman_collection.json`
The `Get Items` query should return the same items that were in the database at the time it was deleted.