Six databases for local development, each with a web UI and the same sample data, started with one command
A Docker Compose setup for trying out and comparing databases on your own machine. Each database starts with the same
small tasks dataset, so you can ask the same question in SQL, MQL, Cypher, Valkey commands and Qdrant's REST API and
compare the answers.
- ๐๏ธ Six databases: MariaDB, PostgreSQL, MongoDB, Valkey (Redis-compatible), Neo4j and Qdrant
- ๐ฅ๏ธ A web UI for each: phpMyAdmin, pgAdmin, Mongo Express, RedisInsight, Neo4j Browser and the Qdrant dashboard
- ๐ฑ Same sample data everywhere: three tasks per database, loaded on first start
- ๐๏ธ Profiles: start everything, or only the database you need
- โ Smoke test: one script checks the data and the web UIs; CI runs it on every push
- ๐ง No setup: works without a
.envfile; ports and credentials can be overridden
Note
I built the first version in September 2023 to learn Docker Compose with MariaDB, PostgreSQL and MongoDB.
In October 2026 I updated it: pinned current image versions, healthchecks, named volumes, profiles, three more
databases and a smoke test. The original state is tagged as v1.0.0.
Warning
This is for local development only. The default passwords are public (they are in this README), and every port is published on all network interfaces of your machine. Do not run this setup on a server.
- Tech stack
- Architecture
- Repository structure
- Quick start
- Services and ports
- Configuration
- Sample data
- Development
- Documentation
- Known issues
- License
- Author
| Area | Technology |
|---|---|
| Relational | |
| Document | |
| Key-value | |
| Graph | |
| Vector | |
| Web UIs | |
| Infrastructure |
flowchart LR
you(["You: browser, DataGrip, CLI"])
subgraph compose["Docker Compose project docker-dbs"]
direction LR
pma[phpMyAdmin] --> mariadb[(MariaDB)]
pga[pgAdmin] --> postgres[(PostgreSQL)]
me[Mongo Express] --> mongodb[(MongoDB)]
ri[RedisInsight] --> valkey[(Valkey)]
neo4j[(Neo4j + Browser)]
qdrant[(Qdrant + dashboard)]
vseed[valkey-seed] -.->|loads data| valkey
nseed[neo4j-seed] -.->|loads data| neo4j
qseed[qdrant-seed] -.->|loads data| qdrant
end
you -->|localhost ports| compose
| What | Where |
|---|---|
| Services, ports, volumes, profiles | compose.yaml |
| Sample data loaded by the image on first start | mariadb/init/, postgres/init/, mongodb/init/ |
| Sample data loaded by a one-off seed container | valkey/seed.sh, neo4j/seed.cypher, qdrant/seed.sh |
| Data | Named Docker volumes (docker-dbs_mariadb-data, โฆ) |
MariaDB, PostgreSQL and MongoDB run the files in /docker-entrypoint-initdb.d when their volume is empty. Valkey,
Neo4j and Qdrant have no such mechanism, so a *-seed container loads their data once the database is healthy. It
then stays up and reports healthy, so docker compose up --wait returns only when all sample data is in (Compose
treats containers that exit as failures). The seed scripts can run more than once without creating duplicates.
| Path | Content |
|---|---|
compose.yaml |
All services |
.env.example |
Every setting with its default |
mariadb/ |
Init SQL |
postgres/ |
Init SQL and the pgAdmin server list |
mongodb/ |
Init script for mongosh |
valkey/, neo4j/, qdrant/ |
Seed scripts |
scripts/smoke-test.sh |
Checks data and web UIs of all running services |
docs/ |
Guides per database, desktop clients, troubleshooting |
.github/workflows/ci.yml |
Starts everything and runs the smoke test |
You need Docker with Compose v2. With all six databases, the images take about 4.3 GB of disk and the running stack about 1.5 GB of RAM.
-
Clone the repository:
git clone [email protected]:HuberNicolas/docker-dbs.git
cd docker-dbs -
Start everything and wait until all services are healthy:
docker compose --profile all up -d --wait
Or start only one database with its UI, for example PostgreSQL and pgAdmin:
docker compose --profile postgres up -d --wait
-
Check that the data is there:
scripts/smoke-test.sh
-
Open a web UI from the table below.
-
Stop everything (the data stays in the volumes):
docker compose --profile all down
-
Stop everything and delete all data, so the sample data is loaded again on the next start:
docker compose --profile all down -v
Tip
Set COMPOSE_PROFILES=all (or postgres,mongodb, โฆ) in .env, and the --profile flag is no longer needed.
Profiles: mariadb, postgres, mongodb, valkey, neo4j, qdrant and all.
| Profile | Service | URL / address | Login (default) |
|---|---|---|---|
mariadb |
MariaDB | localhost:3307 |
mariadb-user / mariadb-user-pw, root: mariadb-root-pw |
| phpMyAdmin | http://localhost:8081 | same as MariaDB | |
postgres |
PostgreSQL | localhost:5433 |
postgres-user / postgres-user-pw |
| pgAdmin | http://localhost:5051 | [email protected] / pgadmin-user-pw |
|
mongodb |
MongoDB | localhost:27018 |
mongodb-root / mongodb-root-pw |
| Mongo Express | http://localhost:8082 | mongo-express-user / mongo-express-user-pw |
|
valkey |
Valkey | localhost:6380 |
password valkey-pw |
| RedisInsight | http://localhost:5540 | none | |
neo4j |
Neo4j Browser | http://localhost:7474 | neo4j / neo4j-user-pw |
| Neo4j Bolt | neo4j://localhost:7687 |
same | |
qdrant |
Qdrant REST API | http://localhost:6333 | header api-key: qdrant-api-key |
| Qdrant dashboard | http://localhost:6333/dashboard | API key qdrant-api-key |
Inside the Compose network, services reach each other by service name, for example postgres:5432 or mongodb:27017.
pgAdmin already lists the PostgreSQL server as docker-dbs; it asks for the password when you first connect.
Everything works without a .env file. To change a port or a password, copy the example and edit it:
cp .env.example .env
| Variable | Default | Meaning |
|---|---|---|
COMPOSE_PROFILES |
(unset) | Profiles to start without --profile |
MARIADB_PORT, PHPMYADMIN_PORT |
3307, 8081 |
Host ports |
MARIADB_ROOT_PASSWORD, MARIADB_USER, MARIADB_PASSWORD |
see table above | MariaDB accounts |
POSTGRES_PORT, PGADMIN_PORT |
5433, 5051 |
Host ports |
POSTGRES_USER, POSTGRES_PASSWORD |
see table above | PostgreSQL superuser |
PGADMIN_DEFAULT_EMAIL, PGADMIN_DEFAULT_PASSWORD |
see table above | pgAdmin login |
MONGODB_PORT, MONGO_EXPRESS_PORT |
27018, 8082 |
Host ports |
MONGODB_ROOT_USERNAME, MONGODB_ROOT_PASSWORD |
see table above | MongoDB root user |
MONGO_EXPRESS_USERNAME, MONGO_EXPRESS_PASSWORD |
see table above | Mongo Express basic auth |
VALKEY_PORT, REDISINSIGHT_PORT |
6380, 5540 |
Host ports |
VALKEY_PASSWORD |
valkey-pw |
Valkey requirepass |
NEO4J_HTTP_PORT, NEO4J_BOLT_PORT |
7474, 7687 |
Host ports |
NEO4J_PASSWORD |
neo4j-user-pw |
Password of the neo4j user (8+ characters) |
QDRANT_PORT |
6333 |
Host port |
QDRANT_API_KEY |
qdrant-api-key |
Qdrant API key |
MariaDB, PostgreSQL, MongoDB, pgAdmin and Neo4j only read their users and passwords when the volume is created. After
changing one of them, run docker compose --profile all down -v once.
Every database gets the same three tasks, in a database or collection called task_db / tasks:
| id | name | description | completed | priority | due_date |
|---|---|---|---|---|---|
| 1 | Task 1 | Description of Task 1 | false | 2 | 2023-07-29 |
| 2 | Task 2 | Description of Task 2 | true | 1 | 2023-07-30 |
| 3 | Task 3 | Description of Task 3 | false | 3 | 2023-07-31 |
How each database stores them, with a first query for each, is in docs/databases.md. The data is made up and part of this repository.
| Task | Command / guide |
|---|---|
Validate compose.yaml |
docker compose --profile all config --quiet |
| Check data and web UIs | scripts/smoke-test.sh |
| Follow the logs of one service | docker compose logs -f postgres |
| Open a shell in a database container | docker compose exec postgres sh |
| Reload the sample data | docker compose --profile all down -v, then start again |
| Update an image | Change the tag in compose.yaml, then docker compose --profile all pull |
| Fix a problem | docs/troubleshooting.md |
| Guide | Content |
|---|---|
| docs/databases.md | Each database: data model, CLI access, first queries |
| docs/desktop-clients.md | Connecting DataGrip and other desktop clients |
| docs/troubleshooting.md | Port conflicts, stale volumes, slow starts |
- RedisInsight asks you to accept its EULA on first start. The Valkey connection is set through the
RI_REDIS_*variables, but whether it appears right after the EULA dialog has not been checked yet (see TODO.md). - Mongo Express
1.0.2is the newest release. It works with MongoDB 8.0; newer MongoDB versions were not tested.
The code in this repository is licensed under the MIT License. The Docker images are not part of this repository and keep their own licenses (for example SSPL for MongoDB, GPLv3 for Neo4j Community Edition, and the Redis terms for RedisInsight).
Nicolas Huber (@HuberNicolas). Personal learning project from September 2023, updated in October 2026.