{"id":21106934,"url":"https://github.com/buildo/docker-h2database","last_synced_at":"2025-06-12T02:34:43.856Z","repository":{"id":55848645,"uuid":"106403204","full_name":"buildo/docker-h2database","owner":"buildo","description":"h2database dockerfile","archived":false,"fork":false,"pushed_at":"2024-01-17T10:33:06.000Z","size":10,"stargazers_count":11,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-21T03:41:34.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buildo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-10T10:34:24.000Z","updated_at":"2024-02-29T16:34:24.000Z","dependencies_parsed_at":"2024-01-17T11:50:08.016Z","dependency_job_id":"c5073831-be05-44da-a234-478b2bbc0a54","html_url":"https://github.com/buildo/docker-h2database","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Fdocker-h2database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Fdocker-h2database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Fdocker-h2database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Fdocker-h2database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildo","download_url":"https://codeload.github.com/buildo/docker-h2database/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243551327,"owners_count":20309300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T00:34:32.594Z","updated_at":"2025-03-14T09:16:58.432Z","avatar_url":"https://github.com/buildo.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker image for H2\n\nA Docker image for the [H2 Database Engine](http://www.h2database.com/).\n\n## Versions\n\n* **Version 2.2.224 (2023-09-17)**, the latest stable image, according to\n[this page](http://www.h2database.com/html/download.html)\n* **Version 2.1.214 (2022-06-13)**\n* **Version 1.4.195 (2017-04-23)**\n\n## How to use this image\n\n```sh\ndocker run --name my-h2 -d buildo/h2database\n```\n\nThe default TCP port 9092 is exposed, so standard container linking will make it\nautomatically available to the linked containers.\n\nUse this JDBC string to connect from another container:\n\n```\njdbc:h2:tcp://my-h2/my-db-name\n```\n\n## Using the web interface\n\nIf you want to connect to the H2 web interface, bind the port 8082:\n\n```sh\ndocker run --name my-h2 -p 8082:8082 -d buildo/h2database\n```\n\nThen in your browser open http://localhost:8082/ and use the following\nconnection parameters:\n\nDriver Class: org.h2.Driver\nJDBC URL: jdbc:h2:my-db-name\nUser Name: _(empty)_\nPassword: _(empty)_\n\n## Environment Variables\n\n`H2DATA` specifies the location for the db files. If not set, `/h2-data` is used\nwhich is automatically created as an anonymous Docker volume.\n\n## Initialization scripts\n\nThis image uses an initialization mechanism similar to the one used in the\n[official Postgres image](https://hub.docker.com/_/postgres/).\n\nYou can add one or more `*.sql` or `*.sh` scripts under\n/docker-entrypoint-initdb.d (creating the directory if necessary). The image\nentrypoint script will run any `*.sql` files and source any `*.sh` scripts found\nin that directory to do further initialization before starting the service.\n\nThe **name** of the `*.sql` files will be used as the name of the database. For\nexample, to create a table named \"FOOBAR\" in the \"baz\" database, add the\nfollowing content to `/docker-entrypoint-initdb.d/baz.sql`:\n\n```\nCREATE TABLE FOOBAR;\n```\n\nIf you want to do something more complex, use a `.sh` script instead, for\nexample adding the following content to `/docker-entrypoint-initdb.d/init.sh`:\n\n```\n#!/bin/bash\n\njava -cp /h2/bin/h2.jar org.h2.tools.RunScript \\\n  -script /docker-entrypoint-initdb.d/baz \\\n  -url \"jdbc:h2:/h2-data/custom-db-name\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildo%2Fdocker-h2database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildo%2Fdocker-h2database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildo%2Fdocker-h2database/lists"}