- Copy the
.sql
file to the root of this repo and call itsql-dump.sql
- Run
docker-compose up
- exec into the running container by running
docker exec -it postgres_local sh
- run
/bin/bash seed-data.sh
- Connect to the postgres instance with the following credentials running on host
127.0.0.1
and port5432
- User:
api-user
- Password:
password
- Database:
tenant-database
Data will be saved in the root of this project in a folder called postgres-data
. If you wish to use a new sql file, follow these steps.
- Run
docker-compose down
- Delete the
postgres-data
folder the root of this project - Delete the current file called
sql-dump.sql
from this directory - Repeat the initial steps to initialize the instance