Skip to content

Instantly share code, notes, and snippets.

@mikemarmar
Created February 29, 2016 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemarmar/80ae07c3b65c190f50c5 to your computer and use it in GitHub Desktop.
Save mikemarmar/80ae07c3b65c190f50c5 to your computer and use it in GitHub Desktop.
Hippo servlet context configuration for Docker
<?xml version='1.0' encoding='utf-8'?>
<Context useHttpOnly="true">
<!-- Disable session persistence across Tomcat restarts -->
<Manager pathname="" />
<Parameter name="repository-address" value="rmi://127.0.0.1:1099/hipporepository" override="false"/>
<Parameter name="repository-directory" value="/usr/local/tomcat/repository" override="false"/>
<Parameter name="start-remote-server" value="false" override="false"/>
<Parameter name="check-username" value="liveuser" override="false"/>
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session" mail.smtp.host="localhost"/>
<!-- JNDI resource exposing database connection goes here -->
<Resource
name="jdbc/repositoryDS" auth="Container" type="javax.sql.DataSource"
maxTotal="20" maxIdle="10" initialSize="2" maxWaitMillis="10000"
testWhileIdle="true" testOnBorrow="false" validationQuery="SELECT 1"
timeBetweenEvictionRunsMillis="10000"
minEvictableIdleTimeMillis="60000"
username="hippo" password="hippo"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://hippo-mysql:3306/hippo?characterEncoding=utf8"/>
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment