mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
chore: simplify testing
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
version: "3"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
container_name: pg-adapter
|
||||
environment:
|
||||
POSTGRES_DB: adapter-postgres-test
|
||||
POSTGRES_USER: pg
|
||||
POSTGRES_PASSWORD: pg
|
||||
volumes:
|
||||
- ./example-schema.sql:/docker-entrypoint-initdb.d/example-schema.sql
|
||||
ports:
|
||||
- 5432:5432
|
||||
@@ -1,6 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
docker-compose up -d
|
||||
docker run --name pg-adapter \
|
||||
-d \
|
||||
-e POSTGRES_DB=adapter-postgres-test \
|
||||
-e POSTGRES_USER=pg \
|
||||
-e POSTGRES_PASSWORD=pg \
|
||||
-p 5432:5432 \
|
||||
-v "$(pwd)"/schema.sql:/docker-entrypoint-initdb.d/schema.sql \
|
||||
postgres:latest
|
||||
|
||||
echo "waiting 10 seconds for databases to start..."
|
||||
sleep 10
|
||||
|
||||
Reference in New Issue
Block a user