Marmot + PocketBase + Fly.io #57
maxpert
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Notes:
tables, indexes you will be creating, deleting won't be picked up. Marmot only transports data right now! This
repo ships with sample data snapshot that was created using local PocketBase instance, so it should give you
good starting point. You only need schema of tables + indexes in order to see replication working.
to disk!
up and running every-time. You can configure Marmot with S3/Minio snapshots for higher reliability.
Clone this Gist
Clone or Download the copy of Gist. Once downloaded/extracted, and
cd
into the directory.Install Flyctl
fly auth signup
to create a Fly.io account (email or GitHub).fly auth login
to login.Deploy and Scale
fly app create
, fill in the information on prompts.fly deploy -a <application-name>
, hereapplication-name
will be the name of app you createdfly scale count 2 -a <application-name>
. At least have 2 pods for Marmot tostart a cluster, otherwise Marmot process won't come up and wait for more than 1 nodes to come up.
Create Admin
Once cluster is started go to
http://<application-name>.fly.dev/_/
to launch admin panel, it will prompt you to create anadmin account. Choose your email and password. Once you hit create, it will create your admin account.
Use the APIs
Now you can play with your app's API using
http://<application-name>.fly.dev/api/
. CheckoutPocketBase Docs for deep dive.
Beta Was this translation helpful? Give feedback.
All reactions