diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c378f0802896..b64258db8113 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,7 @@ jobs: - 5432:5432 env: POSTGRES_HOST_AUTH_METHOD: trust # never do this in production! + POSTGRES_INITDB_ARGS: '--no-sync --set fsync=off --set full_page_writes=off' # Set health checks to wait until postgres has started options: --health-cmd "pg_isready --username=postgres --dbname=postgres" --health-interval 10s --health-timeout 5s --health-retries 5 stripe: diff --git a/docker-compose.yml b/docker-compose.yml index 0caa3110e580..03ba0c118b86 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: - "5433:5432" environment: POSTGRES_HOST_AUTH_METHOD: trust # never do this in production! + POSTGRES_INITDB_ARGS: '--no-sync --set fsync=off --set full_page_writes=off' healthcheck: test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"] interval: 1s