An example application uses Nextjs, a server-side rendering front-end framework which reads from news.json
and images under images
storing it to a relational database.
Create a postgres_user.txt
, postgres_password.txt
, postgres_url.txt
for docker secrets.
docker compose up
npx prisma migrate dev
npx prisma db seed
Run prisma database studio
npx prisma studio
Access docker containers
docker ps
docker exec -it {test-postgres}
psql -U postgres