docker, docker-compose installed
-
clone repo
git clone https://github.com/ASVBPREAUBV/postgrest-starter
-
cd in repo folder
-
run docker-compose with docker-compose.yml
docker-compose up
-
Services should run
- http://localhost:8080 should run swagger-gui
- http://localhost:3000 should run api
- http://localhost:5432 should run postgres
You can connect to postgres to work in the psql console
docker exec -it postgrest-starter_db_1 psql -U root -W app_db
While testing i found it to be more reliable to delete all containers every time i run docker-compose again. WARNING: this will delete all containers with the names in the array in line 2 in scripts/reset-containers.sh
bash scripts/reset-containers.sh
- Add Init-SQL Script
- Add Admin with Password set in ENV
- Add User-Model