GithubHelp home page GithubHelp logo

pocketcms-litestream's Introduction

Litestream, Pocketbase/PocketCMS on Google Cloud Run

Combined with Google Cloud Build and Google Cloud Run, you can make GCloud build your Dockerfile for Pocketbase/PocketCMS and run it in a serverless environment, with replication / backup using Litestream to backup to a Google Cloud Storage bucket.

This repo was build from the following guides / repos:

Steps

  1. fork this repo
  2. create a Google Cloud storage bucket (does not need to be publicly available)
  3. create a new Google Cloud Run service, set it to continuously deploy from a GitHub repository (the one you forked) using the /Docerfile
  4. make sure the service is public, has an always allocated CPU, and has minimum (and maximum) CPUs set to 1
  5. the default port that Google Cloud Run listens on is 8090, but pocketcms/pocketbase uses 8090, make sure to change the container port to 8090
  6. in VARIABLES & SECRETS, set: REPLICA_URL to gcs://YOUR_BUCKET_NAME/db
  7. once the service is set up it will automatically trigger a build. any time a new change is pushed to the repo the service will be built and re-deployed.

pocketcms-litestream's People

Contributors

parkuman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.