Sign inSign up

thomseno/h2

By thomseno

Updated 11 months ago

Dockerized H2 database

Image
Databases & storage
3

10K+

thomseno/h2 repository overview

docker-h2

Dockerized H2 database.

Features

  • Inspired by oscarfonts/h2.
  • Using eclipse-temurin.
  • Only packing H2 jar-file into Docker image (retrieved from Maven Central).
  • H2-DATA location on /h2-data
  • Exposing default ports 8082 / 9092

Builds

builds on dockerhub:

  • 2.4.240 / latest
  • 2.3.232
  • 2.2.224
  • 2.1.214
  • 2.0.206
  • 1.4.200

Running

Get the image:

docker pull thomseno/h2

Run as a service, exposing ports 9092 (TCP database server) and 8082 (web interface) and mapping data volume to host:

docker run -d -p 9092:9092 -p 8082:8082 -v /path/to/local/h2-data:/h2-data --name=myH2Server thomseno/h2

By setting the JAVA_OPTS environment variable you can for example set the memory parameters of the JVM:

docker run -d -e JAVA_OPTS='-Xmx256m -Xms256m' -p 9092:9092 -p 8082:8082 -v /path/to/local/h2-data:/h2-data --name=myH2Server thomseno/h2

Tag summary

Content type

Image

Digest

sha256:3d91afdd1

Size

99.8 MB

Last updated

11 months ago

docker pull thomseno/h2