Closed ChrisRichardMiles closed 5 months ago
I couldn't do it with a dockerfile, but i solved it with a run.sh file in the database directory. Running bash run.sh
from the root will now create 2 containers, one running the frontend app and one running the database. It will also print and show that the database was created.
close
Description: As part of the backend setup for our General Ledger system, we need to configure our Dockerfile to include a PostgreSQL database and initialize it with a table that matches the schema required for our ledger entries. Additionally, we want to prepopulate the table with three initial entries to facilitate testing and development.
To do:
bash run.sh
creates two containers, with one running the frontend app and the other running the postgresql database.Acceptance criteria:
ID
,Date
,Account Name
,Debit
,Credit
,,Entry Type
, andAmount
Description
, with the correct data types and constraints.Prepopulated entries: