Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Full Stack Fastapi Postgresql | 11,206 | a month ago | 208 | mit | Python | |||||
Full stack, modern web application generator. Using FastAPI, PostgreSQL as database, Docker, automatic HTTPS and more. | ||||||||||
Docker Gitlab | 7,541 | 4 days ago | 521 | mit | Shell | |||||
Dockerized GitLab | ||||||||||
Coolify | 7,293 | 5 hours ago | 230 | apache-2.0 | Svelte | |||||
An open-source & self-hostable Heroku / Netlify alternative. | ||||||||||
Pgloader | 4,413 | 12 days ago | 1 | February 27, 2018 | 288 | other | Common Lisp | |||
Migrate to PostgreSQL in a single command! | ||||||||||
Devilbox | 4,080 | 11 days ago | 42 | mit | PHP | |||||
A modern Docker LAMP stack and MEAN stack for local development | ||||||||||
Stolon | 4,066 | a month ago | 17 | September 03, 2021 | 141 | apache-2.0 | Go | |||
PostgreSQL cloud native High Availability and more. | ||||||||||
Dbmate | 3,199 | 1 | 6 days ago | 27 | March 25, 2022 | 12 | mit | Go | ||
:rocket: A lightweight, framework-agnostic database migration tool. | ||||||||||
Graphjin | 2,638 | 2 | 3 days ago | 457 | September 20, 2022 | 16 | apache-2.0 | Go | ||
GraphJin - Build NodeJS / GO APIs in 5 minutes not weeks | ||||||||||
Changelog.com | 2,525 | 5 hours ago | 10 | other | Elixir | |||||
Changelog is news and podcast for developers. This is our open source platform. | ||||||||||
Postgresqltuner | 2,410 | 9 days ago | 10 | gpl-3.0 | Perl | |||||
Simple script to analyse your PostgreSQL database configuration, and give tuning advice |
Spilo is a Docker image that provides PostgreSQL and Patroni bundled together. Patroni is a template for PostgreSQL HA. Multiple Spilos can create a resilient High Available PostgreSQL cluster. For this, you'll need to start all participating Spilos with identical etcd addresses and cluster names.
Spilo's name derives from [spil], the Georgian word for "elephant."
Spilo is currently evolving: Its creators are working on a Postgres operator that would make it simpler to deploy scalable Postgres clusters in a Kubernetes environment, and also do maintenancetasks. Spilo would serve as an essential building block for this. There is already a Helm chart that relies on Spilo and Patroni to provision a five-node PostgreSQL HA cluster in a Kubernetes+Google Compute Engine environment. (The Helm chart deploys Spilo Docker images, not just "bare" Patroni.)
Spilo's setup assumes that you've correctly configured a load balancer (HAProxy, ELB, Google load balancer) that directs client connections to the master. There are two ways to achieve this: A) if the load balancer relies on the status code to distinguish between the healthy and failed nodes (like ELB), then one needs to configure it to poll the API URL; otherwise, B) you can use callback scripts to change the load balancer configuration dynamically.
Available container registry and image architectures
Spilo images are made available in the GitHub container registry (ghcr.io). Images are build and published as linux/amd64 and linux/arm64 on tag. For PostgreSQL version 14 currently availble images can be found here: https://github.com/zalando/spilo/pkgs/container/spilo-14
$ cd postgres-appliance
$ docker build --tag $YOUR_TAG .
There are a few build arguments defined in the Dockerfile and it is possible to change them by specifying --build-arg
arguments:
Run the image locally after build:
$ docker run -it your-spilo-image:$YOUR_TAG
Have a look inside the container:
$ docker exec -it $CONTAINER_NAME bash
Administrative Connections
PostgreSQL is configured by default to listen to port 5432. Spilo master initializes PostgreSQL and creates the superuser and replication user (postgres
and standby
by default).
You'll need to setup Spilo to create a database and roles for your application(s). For example:
psql -h myfirstspilo.example.com -p 5432 -U admin -d postgres
Application Connections
Once you have created a database and roles for your application, you can connect to Spilo just like you want to connect to any other PostgreSQL cluster:
psql -h myfirstspilo.example.com -p 5432 -U wow_app -d wow
psql -d "postgresql://myfirstspilo.example.com:5432/wow?user=wow_app"
Spilo is configured via environment variables, the values of which are either supplied manually via the environment (whenever Spilo is launched as a set of Docker containers) or added in the configuration file or manifest (whenever Spilo is used in the Docker orchestration environment, such as Kubernetes or Docker Compose).
Please go here to see our list of environment variables.
To supply env variables manually via the environment for local testing:
docker run -it -e YOUR_ENV_VAR=test your-spilo-image:latest
Spilo welcomes questions via our issues tracker. We also greatly appreciate fixes, feature requests, and updates; before submitting a pull request, please visit our contributor guidelines.
This project uses the Apache 2.0 license.