Update docker-compose to use postgres container (#10594)

There is no reason to use a custom image for postgres anymore as we have
migrated out pg_graphql postgres extension
This commit is contained in:
Charles Bochet
2025-02-28 20:09:30 +01:00
committed by GitHub
parent f6a5c81a55
commit cd069fb941
3 changed files with 36 additions and 11 deletions

View File

@ -66,14 +66,12 @@ services:
restart: always
db:
image: twentycrm/twenty-postgres-spilo:${TAG:-latest}
image: postgres:16
volumes:
- db-data:/home/postgres/pgdata
- db-data:/var/lib/postgresql/data
environment:
PGUSER_SUPERUSER: ${PG_DATABASE_USER:-postgres}
PGPASSWORD_SUPERUSER: ${PG_DATABASE_PASSWORD:-postgres}
ALLOW_NOSSL: "true"
SPILO_PROVIDER: "local"
POSTGRES_USER: ${PG_DATABASE_USER:-postgres}
POSTGRES_PASSWORD: ${PG_DATABASE_PASSWORD:-postgres}
healthcheck:
test: pg_isready -U ${PG_DATABASE_USER:-postgres} -h localhost -d postgres
interval: 5s