1
Decoupled DB and Middleware for Self-Hosted using Docker Compose
Source: supabase/supabase#14354 · opened by @salleh
In the self hosted documentation, it was recommended to decouple the DB with the rest of middleware but within the docker compose setup configured under the docker folder of the repo, they are all bundled into a single docker compose project.
I have created a very crude docker compose shell script and yaml file to decouple the DB component with the rest of the middleware... it comprise of 2 different docker compose project:
1. The DB service docker compose
2. The Middleware service docker compose
both are utilizing the same external docker network named after the environment variable PROJECT_NAME
I've created 4 shell script to initialize the service, stop, start and remove them.
This is a very crude way to do things for now just to achieve the objective of decoupling the DB and the Middleware components.
Someone could perhaps improve the approach that I have shown in my fork under 'decoupled' branch: [
I have created a very crude docker compose shell script and yaml file to decouple the DB component with the rest of the middleware... it comprise of 2 different docker compose project:
1. The DB service docker compose
2. The Middleware service docker compose
both are utilizing the same external docker network named after the environment variable PROJECT_NAME
I've created 4 shell script to initialize the service, stop, start and remove them.
This is a very crude way to do things for now just to achieve the objective of decoupling the DB and the Middleware components.
Someone could perhaps improve the approach that I have shown in my fork under 'decoupled' branch: [
No pledges yet. Be the first to back this.
Comments
Similar requests
Add ability to create sql snippets on selfhosted instance
8 votes · 0 comments
DBT Cloud Console
3 votes · 0 comments
Error 502 with Supabase client when using Nginx as a reverse proxy
19 votes · 0 comments
It would be nice to have a jdbc fdw. As the already existing are dead.
1 vote · 0 comments
Using other DBs like Surrealdb or Neo4j for socializing
2 votes · 0 comments
No comments yet.