Docker: run broke fully on your own server
Dockerfile builds this checkout. docker/docker-compose.yml adds Supabase's Postgres, Auth and PostgREST behind one nginx address, Mailpit for sign-in links, and Ollama under the ai profile. docker/setup.mjs writes fresh secrets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5297d8dfa6
commit
44aa5e0933
9 files changed
+382
No files matched your search
@@ -0,0 +1,29 @@
|
||||
# One address for everything: broke, plus the two Supabase services it needs, on the same origin.
|
||||
# The browser and broke's server both reach Supabase at PUBLIC_URL/auth/v1 and PUBLIC_URL/rest/v1.
|
||||
server {
|
||||
listen 80;
|
||||
client_max_body_size 25m; # statement uploads
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
|
||||
# Supabase Auth (GoTrue). Admin routes still need the service role key.
|
||||
location /auth/v1/ {
|
||||
proxy_pass http://auth:9999/;
|
||||
}
|
||||
|
||||
# Supabase REST (PostgREST). Row-level security decides what each user sees.
|
||||
location /rest/v1/ {
|
||||
proxy_pass http://rest:3000/;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://broke:3000;
|
||||
proxy_buffering off; # AI answers stream
|
||||
proxy_read_timeout 300s;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user