/.env
Last active
November 14, 2018 09:04
docker-compose example for TomEE Plus + JNDI + Derby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please check "https://javatoybox.blogspot.com/2018/11/docker-kubernetes.html" | |
DERBY_IMAGE_TAG=v10.14.2.0 | |
TOMEE_IMAGE_TAG=v8-jre-7.1.0-plus | |
# for Windows "A:\\javatoybox\\Database\\" | |
# for Linux "~/Database" | |
# for k8s ( Windows 10 ) "//a/javatoybox/Database" | |
DERBY_MOUNT_MAPPING=//a/javatoybox/Database | |
# for windows "A:\javatoybox\GitHub_Local_Repo\docker-compose" | |
# for k8s ( Windows 10 ) "//a/javatoybox/GitHub_Local_Repo/docker-compose/" | |
TOMEE_MOUNT_MAPPING=//a/javatoybox/GitHub_Local_Repo/docker-compose/ | |
# test website "http://localhost:8080/TomEE-JNDI-Derby-Example/datasource.jsp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
db: | |
hostname: db | |
image: integrityknight/derby:${DERBY_IMAGE_TAG} | |
container_name: derby_db | |
ports: | |
- 1527:1527 | |
healthcheck: | |
disable: true | |
volumes: | |
- ${DERBY_MOUNT_MAPPING}:/Database | |
command: java -Dderby.stream.error.field=java.lang.System.out org.apache.derby.drda.NetworkServerControl start -h db | |
tomee: | |
hostname: tomee | |
depends_on: | |
- db | |
image: integrityknight/tomee:${TOMEE_IMAGE_TAG} | |
container_name: tomee_plus | |
ports: | |
- 8080:8080 | |
volumes: | |
- ${TOMEE_MOUNT_MAPPING}/webapps/:/usr/local/tomee/webapps | |
- ${TOMEE_MOUNT_MAPPING}/lib/:/usr/local/tomee/lib | |
- ${TOMEE_MOUNT_MAPPING}/conf/:/usr/local/tomee/conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment