1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 05:34:02 +00:00

Change Postgres port

This commit is contained in:
lukinovec 2023-04-25 14:20:55 +02:00
parent 28f8e3854a
commit 18b47fb4d0
3 changed files with 7 additions and 7 deletions

View file

@ -51,10 +51,10 @@ jobs:
POSTGRES_PASSWORD: 'postgres' POSTGRES_PASSWORD: 'postgres'
POSTGRES_USER: 'postgres' POSTGRES_USER: 'postgres'
POSTGRES_DB: main POSTGRES_DB: main
POSTGRES_PORT: '5434' POSTGRES_PORT: '5433'
PGPORT: '5434' PGPORT: '5433'
ports: ports:
- 5434/tcp - 5433/tcp
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3
mysql: mysql:

View file

@ -55,15 +55,15 @@ services:
image: 'postgres:15' image: 'postgres:15'
user: 'postgres' user: 'postgres'
ports: ports:
- '${POSTGRES_PORT:-5434}' - '${POSTGRES_PORT:-5433}'
environment: environment:
PGPASSWORD: '${POSTGRES_PASSWORD:-postgres}' PGPASSWORD: '${POSTGRES_PASSWORD:-postgres}'
PGPORT: '${POSTGRES_PORT:-5434}' PGPORT: '${POSTGRES_PORT:-5433}'
POSTGRES_DB: main POSTGRES_DB: main
POSTGRES_USER: 'postgres' POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres' POSTGRES_PASSWORD: 'postgres'
expose: expose:
- '${POSTGRES_PORT:-5434}' - '${POSTGRES_PORT:-5433}'
healthcheck: healthcheck:
test: test:
- CMD - CMD

View file

@ -88,7 +88,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
'driver' => 'pgsql', 'driver' => 'pgsql',
'url' => env('DATABASE_URL'), 'url' => env('DATABASE_URL'),
'host' => 'postgres', 'host' => 'postgres',
'port' => '5434', 'port' => '5433',
'database' => 'main', 'database' => 'main',
'username' => 'postgres', 'username' => 'postgres',
'password' => 'postgres', 'password' => 'postgres',