Docker: fixes from a full test run

- roles.sql only touches roles this stack has (the init stopped early before)
- internal database link without SSL
- Mailpit without an SMTP login (GoTrue refuses one over plain SMTP)
- setup.mjs refuses localhost, which the containers can't reach

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MangaValkandClaude Opus 5.5 committed 2026-11-17 13:56:32 +01:00
1 parent c50c645cfb
commit 861e65021f
4 files changed
+12 -8

No files matched your search

+5
View File
@@ -14,6 +14,11 @@ if (!/^https?:\/\/[^/]+$/.test(url)) {
console.error("Give the address you will open broke on, with the port: node docker/setup.mjs --url http://192.168.1.10:3000");
process.exit(1);
}
// broke's server reaches Supabase through this address too, and inside a container localhost is the container itself.
if (/^https?:\/\/(localhost|127\.|\[::1\]|0\.0\.0\.0)/.test(url)) {
console.error("Use the server's LAN address or name (like http://192.168.1.10:3000), not localhost: the containers can't reach localhost.");
process.exit(1);
}
if (existsSync(file) && !process.argv.includes("--force")) {
console.error(`${file} already exists. Its secrets protect your data, so it is left alone. Pass --force to replace it (only before first start).`);
process.exit(1);