Skip to content

The open alternative to Salesforce, designed for AI.

Update Makefile in local setup to clean postgres instead of pg-spile (#12273)

BOHEUS742af7884a80
diff --git a/Makefile b/Makefile
index 4354739465c..e3c7be965e2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
postgres-on-docker:
docker run -d \
--name twenty_pg \
- -e PGUSER_SUPERUSER=postgres \
- -e PGPASSWORD_SUPERUSER=postgres \
+ -e POSTGRES_USER=postgres \
+ -e POSTGRES_PASSWORD=postgres \
-e ALLOW_NOSSL=true \
- -v twenty_db_data:/home/postgres/pgdata \
+ -v twenty_db_data:/var/lib/postgresql/data \
-p 5432:5432 \
- twentycrm/twenty-postgres-spilo:latest
+ postgres:16
@echo "Waiting for PostgreSQL to be ready..."
@until docker exec twenty_pg psql -U postgres -d postgres \
-c 'SELECT pg_is_in_recovery();' 2>/dev/null | grep -q 'f'; do \