Skip to content

Docker Playground ​

Everyone gets a place. Yes, even the legacy database.

The Playground starts a database in Docker with sample data, so you can try an engine, test a query or get a dev database without installing anything.

Requirements ​

Docker Desktop (or another docker command) installed and running. The first start of each engine pulls its image from Docker Hub or Microsoft's registry, which can take a while.

Starting one ​

Click Playground in the connection manager, pick a mode and an engine.

  • Throwaway: removed when you close its tab. Nothing is saved.
  • Keep: keeps its data in a Docker volume and keeps running after you close the tab, so you can use it as your app's dev database. Lily saves it as a connection in a Playground group.

Lily waits up to about 90 seconds for the database to accept connections, then opens it.

Engines ​

All run on localhost, on ports chosen not to clash with a database you already run.

EngineImagePortUser / passwordSample data
PostgreSQLpostgres:1615432lily / lily123products in lily_store
MySQLmysql:8.413306root / lily123products in lily_store
SQL Servermssql/server:2022-latest11433sa / Lily_Str0ng!products in master
ClickHouseclickhouse-server:latest18123lily / lily123products in lily_store
Trinotrinodb/trino:latest18080lily, no passwordthe built-in tpch catalog
MongoDBmongo:737017no authproducts in lily_store
Redisredis:7-alpine16379password lily123empty
DynamoDB Localamazon/dynamodb-local:latest18000key local / secret localProducts table

Trino and DynamoDB Local do not keep data in Keep mode. SQLite is not in the list; the sample store on the home screen covers it.

The connection menu ​

The cube icon on a Playground connection's pill in the connection bar has:

  • Copy connection string, to paste into your app's config;
  • Save as a connection, to keep a throwaway one;
  • Stop & remove.

Opening the same engine again reuses its container if it is still running.

Cleaning up

Throwaway containers are removed when you close their tab. If you quit Lily with one still open, it keeps running; remove it from Docker Desktop or with docker rm -f.

Lily DB is free for personal and commercial use.