From 18b47fb4d060f8f78b268844d36801ca93456044 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 25 Apr 2023 14:20:55 +0200 Subject: [PATCH] Change Postgres port --- .github/workflows/ci.yml | 6 +++--- docker-compose.yml | 6 +++--- tests/TestCase.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba4c4776..0ab3f7e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,10 +51,10 @@ jobs: POSTGRES_PASSWORD: 'postgres' POSTGRES_USER: 'postgres' POSTGRES_DB: main - POSTGRES_PORT: '5434' - PGPORT: '5434' + POSTGRES_PORT: '5433' + PGPORT: '5433' ports: - - 5434/tcp + - 5433/tcp options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 mysql: diff --git a/docker-compose.yml b/docker-compose.yml index 02c0eced..184e0466 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -55,15 +55,15 @@ services: image: 'postgres:15' user: 'postgres' ports: - - '${POSTGRES_PORT:-5434}' + - '${POSTGRES_PORT:-5433}' environment: PGPASSWORD: '${POSTGRES_PASSWORD:-postgres}' - PGPORT: '${POSTGRES_PORT:-5434}' + PGPORT: '${POSTGRES_PORT:-5433}' POSTGRES_DB: main POSTGRES_USER: 'postgres' POSTGRES_PASSWORD: 'postgres' expose: - - '${POSTGRES_PORT:-5434}' + - '${POSTGRES_PORT:-5433}' healthcheck: test: - CMD diff --git a/tests/TestCase.php b/tests/TestCase.php index e3a50806..4da9715c 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -88,7 +88,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase 'driver' => 'pgsql', 'url' => env('DATABASE_URL'), 'host' => 'postgres', - 'port' => '5434', + 'port' => '5433', 'database' => 'main', 'username' => 'postgres', 'password' => 'postgres',