Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Litestreamを用いてDBを永続化 #38

Merged
merged 5 commits into from
Nov 18, 2024
Merged

Conversation

sou1118
Copy link
Member

@sou1118 sou1118 commented Nov 17, 2024

close #37

Summary

This pull request introduces significant changes to the database backup and persistence strategy by integrating Litestream for SQLite databases. Additionally, it updates related configurations and documentation to reflect these changes.

Database Backup and Persistence:

  • ARCHITECTURE.md: Added a detailed section on database backup and persistence using Litestream, including a flowchart, operational mechanism, limitations, differences in development environment, deployment settings, and troubleshooting tips.
  • Dockerfile: Updated to install Litestream, SQLite, and related tools. Modified database paths and added steps to handle database migration and backup. [1] [2]
  • compose.yaml: Updated volume and environment configurations to reflect the new database path.
  • litestream.yml.template: Added configuration for Litestream to replicate the database to Google Cloud Storage.
  • run.sh: Added a script to handle database restoration from Cloud Storage, ensure compatibility with Prisma, and start the application with Litestream replication.

Documentation:

  • README.md: Added a link to the architecture overview document for more detailed information on the new database backup and persistence strategy.

@sou1118 sou1118 requested a review from 3w36zj6 November 17, 2024 09:06
@sou1118 sou1118 self-assigned this Nov 17, 2024
@3w36zj6 3w36zj6 requested a review from r4ai November 17, 2024 09:12
@sou1118 sou1118 changed the title chore: LiteStreamを用いてDBを永続化 chore: Litestreamを用いてDBを永続化 Nov 17, 2024
r4ai
r4ai previously approved these changes Nov 17, 2024
@sou1118 sou1118 added the enhancement New feature or request label Nov 17, 2024
Dockerfile Outdated Show resolved Hide resolved
@sou1118 sou1118 merged commit 0a63afa into main Nov 18, 2024
6 checks passed
@sou1118 sou1118 deleted the feature/issue-37 branch November 18, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LiteStreamを用いてDBを永続化する
3 participants