mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:34:04 +00:00
Make postgres work in tests
This commit is contained in:
parent
ae25e25715
commit
e4aeccb2b0
2 changed files with 11 additions and 7 deletions
|
|
@ -53,13 +53,17 @@ services:
|
|||
retries: 10
|
||||
postgres:
|
||||
image: 'postgres:15'
|
||||
user: 'postgres'
|
||||
ports:
|
||||
- '${FORWARD_DB_PORT:-5433}:5433'
|
||||
- '${FORWARD_DB_PORT:-5434}:5434'
|
||||
environment:
|
||||
PGPASSWORD: '${DB_PASSWORD:-password}:password'
|
||||
PGPASSWORD: 'postgres'
|
||||
PGPORT: '5434'
|
||||
POSTGRES_DB: main
|
||||
POSTGRES_USER: '${DB_USERNAME:-root}:root'
|
||||
POSTGRES_PASSWORD: '${DB_PASSWORD:-password}:password'
|
||||
POSTGRES_USER: 'postgres'
|
||||
POSTGRES_PASSWORD: 'postgres'
|
||||
expose:
|
||||
- "5434"
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
|
|
|
|||
|
|
@ -88,10 +88,10 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
|
|||
'driver' => 'pgsql',
|
||||
'url' => env('DATABASE_URL'),
|
||||
'host' => 'postgres',
|
||||
'port' => env('DB_PORT', '5433'),
|
||||
'port' => '5434',
|
||||
'database' => 'main',
|
||||
'username' => env('DB_USERNAME', 'forge'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'username' => 'postgres',
|
||||
'password' => 'postgres',
|
||||
'charset' => 'utf8',
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue