Dockerfile project for building a mix container with h2 database and web console
1.7K
Dockerfile for building docker container h2 database engine. This image is an extension of fxmartin/docker-sshd-nginx.
This repository contains all needed resources to build a docker image with following features:
if the image is run without mounting a host directory to /opt/h2-data then there will be no persistence. To enable persistence then just run the container as follows:
docker run -d -p 55522:22 -p 55580:80 -p 55581:81 -p 1521:1521 -v $(pwd)/t24-db:/opt/h2-data fxmartin/docker-h2-server
For convenience there is a ./manage.sh command for building, starting (with proper port mappings), stopping and connecting via ssh.
You can download this image from public Docker Registry. A bash script is provided: manage.sh, which allows to manage the container, considering that it won't stop by itself due to supervisor daemon:
Run using command:
docker run -d -p 55522:22 -p 55580:80 -p 55581:81 -p 1521:1521 fxmartin/ubuntu-h2-server
or
manage.sh start
Connect via ssh:
manage.sh ssh
Just don't forget to add private key (yeah, I know) from ssh_keys folder to you '~/.ssh/' and add it via
ssh-add -K ~/.ssh/id_rsa_docker
Forked from viliusl/docker-h2-server
Content type
Image
Digest
Size
183.2 MB
Last updated
over 10 years ago
docker pull fxmartin/docker-h2-server