To build and run the containers:
docker-compose up --build
The env vars are set on a .env
file at root of the project
- The API will be available at http://localhost:8080.
- The front-end interface is available at http://localhost:5173.
-
Open a new terminal and use the following command to enter the PostgreSQL container:
docker exec -it is1_db psql -U is1_admin -d orderdb
-
Once inside the container, you can run SQL commands to inspect the database, like:
\dt -- List all tables \conninfo -- Check connection
To access the PostgreSQL database using the web interface:
-
After running
docker-compose up --build
, pgAdmin will be available at http://localhost:8081. -
Log in using the following credentials (defined in the
docker-compose.yml
):- Email:
admin@admin.com
- Password:
admin
- Email:
To stop the containers, press CTRL + C
in the terminal where Docker Compose is running, then clean up the containers:
docker-compose down