Release Notes
Product Announcements
# Get the codegit clone --depth 1 https://github.com/supabase/supabase# Make your new supabase project directorymkdir supabase-project# Tree should look like this# .# ├── supabase# └── supabase-project# Copy the compose files over to your projectcp -rf supabase/docker/* supabase-project# Copy the fake env varscp supabase/docker/.env.example supabase-project/.env# Switch to your project directorycd supabase-project# Pull the latest imagesdocker compose pull
supabase-project/.env file. Please ensure the corresponding account has been created in the TencentDB for PostgreSQL instance.POSTGRES_HOST=TencentDB for PostgreSQL instance vipPOSTGRES_DB=postgresPOSTGRES_USER=supabase_adminPOSTGRES_PORT=5432POSTGRES_PASSWORD=TencentDB for PostgreSQL Instance Account Password
supabase-project/docker-compose.yml file, search for the external Postgres database keyword. There is a note in the file: if using an external PG, comment out the corresponding part.depends_on:# db:# Disable this if you are using an external Postgres database# condition: service_healthy
CREATE USER supabase_admin pg_tencentdb_superuser password 'your password';CREATE DATABASE _supabase;create schema _analytics;
# Stop docker and remove volumes:docker compose down -v# Remove Postgres data:rm -rf volumes/db/data/

docker compose up -d


Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan