This project provides a ready-to-use Docker Compose setup for running a PostgreSQL database with the Pagila sample database and PgAdmin for database management.
docker-compose.yml– Docker Compose configuration for PostgreSQL and PgAdmin.init-db/– Place the Pagila database SQL files here to initialize the database.queries/queries..sql– Example SQL queries for analytics and reporting.
git clone <your-repo-url>
cd <your-repo-directory>Clone or download the Pagila database SQL files from https://github.com/devrimgunduz/pagila.
Copy the SQL files (typically pagila-schema.sql and pagila-data.sql) into the init-db/ directory.
docker-compose up- PostgreSQL will be available on port
5432. - PgAdmin will be available at http://localhost:5050.
- Open http://localhost:5050 in your browser.
- Login with:
- Email:
admin@local.dev - Password:
admin123
- Email:
- Add a new server in PgAdmin:
- Host:
postgres - Port:
5432 - Username:
postgres - Password:
secret - Database:
pagila
- Host:
You can find example queries in queries/queries..sql. Use PgAdmin or any SQL client to run these queries against the pagila database.
- The database will be initialized automatically on first run using the SQL files in
init-db/. - Make sure Docker is installed and running on your machine.
This project is for educational/demo purposes.