heikkilamarko / litestream-demo

Litestream Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Litestream Demo

1. Start Services

docker compose up --build -d

2. Navigate to MinIO Console

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

# SQLite database:
# COPY items.db /var/api/data/

Build and Restart the API Service

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.

About

Litestream Demo

License:MIT License


Languages

Language:Go 89.0%Language:Dockerfile 9.0%Language:Shell 2.0%