Fix migrate.sh auth failure by overriding built-in script
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m9s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m9s
The Supabase postgres image includes a migrate.sh that tries to connect as supabase_admin without proper credentials. Override it with an empty script since migrations are handled by init.sql. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,7 @@ services:
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
||||
- ./migrate.sh:/docker-entrypoint-initdb.d/migrate.sh:ro
|
||||
- ./zz-set-passwords.sh:/docker-entrypoint-initdb.d/zz-set-passwords.sh:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
|
||||
5
deploy/migrate.sh
Normal file
5
deploy/migrate.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Override the default Supabase migrate.sh
|
||||
# Our migrations are handled via init.sql which runs as postgres user
|
||||
echo "Skipping built-in migrate.sh - migrations handled by init.sql"
|
||||
exit 0
|
||||
Reference in New Issue
Block a user