Run Firebird 5 in Docker, model a small sales schema, and practice SQL with isql and JDBC.
| Field | Detail |
|---|---|
| Repository | firebird-lab |
| Primary language | Mixed / documentation |
| Topics | database, database-labs, devarent, docker, firebird, lab, relational-database, sql |
| License | MIT |
| Branch | main |
| Maintainer | @devarent |
firebird-lab is a hands-on repository focused on: Run Firebird 5 in Docker, model a small sales schema, and practice SQL with isql and JDBC.. Primary language: Mixed / documentation. Topics: database, database-labs, devarent, docker, firebird, lab, relational-database, sql. The README below documents the project; use the table above for a quick overview.
🇮🇸 Iceland · 🇳🇿 New Zealand · 🇨🇭 Switzerland · 🇸🇮 Slovenia · 🇮🇪 Ireland · 🇦🇹 Austria · 🇵🇹 Portugal · 🇸🇬 Singapore · 🇫🇮 Finland
Run Firebird 5 in Docker, model a small sales schema, and practice SQL with isql and JDBC.
Firebird is a compact, embeddable relational database with strong SQL support and a low operational footprint. This lab gives you a real Firebird 5 server on port 3050, a schema you can extend, and the exact JDBC and isql connection details.
docker compose up -d
docker compose cp examples/01_schema.sql firebird:/tmp/01_schema.sql
docker compose exec firebird isql-fb -user SYSDBA -password masterkey -i /tmp/01_schema.sql localhost:/firebird/data/lab.fdb
docker compose exec firebird isql-fb -user SYSDBA -password masterkey localhost:/firebird/data/lab.fdb| Field | Value |
|---|---|
| Host | localhost |
| Port | 3050 |
| Database | lab.fdb |
| User | SYSDBA |
| Password | masterkey |
| JDBC URL | jdbc:firebirdsql://localhost:3050/lab.fdb |
| isql | isql-fb -user SYSDBA -password masterkey localhost:/firebird/data/lab.fdb |
| File | What it shows |
|---|---|
docker-compose.yml |
Engine, ports, and persistent volume. |
.github/workflows/compose-check.yml |
Validates the Compose file on every push. |
examples/01_schema.sql |
Customers and orders with identity columns, a foreign key, and an index. |
examples/02_queries.sql |
Seed data, a join with aggregation, a CTE, and a window function. |
- Add a
productstable and anorder_itemstable, then calculate order totals from the line items. - Run
EXPLAIN PLANfor the revenue query and compare the plan before and after adding an index. - Create a stored procedure that returns the top N customers by revenue.
- The root password in Compose is a local lab credential. Change it before exposing the port.
- Firebird stores the database file inside the named volume
firebird-data. - The image is pinned to Firebird 5.0.4 so the lab stays reproducible.
This lab publishes its ports on 127.0.0.1 only. To use it from another country, do not open the database port to the internet. Pick one:
- VPS + private tunnel: run the lab on a small Ubuntu VPS, keep the port closed, and connect through WireGuard or
ssh -L. - Managed service: use a managed free tier for this engine and point the same examples at its connection string.
- HTTP UI only: if the engine has a web UI, put it behind Caddy with TLS and basic auth.
The shared checklist, provider map, and commands are in REMOTE-ACCESS.md.
docker compose down -v-v also removes the named volume, so the next start is a clean slate.
Part of the database-labs collection: 26 database engines, one index.
MIT (c) 2026 Arya Fatthurahman. See LICENSE.
Full Tech Stack Wall
Connection names shown in the DBX sidebar - decorative reference badges.