Skip to content

Dockerfile for setting up two standalone Tomcat servers in the same container.

Notifications You must be signed in to change notification settings

bingqiao/dual-tomcat

Repository files navigation

Dual Tomcat Setup

Dockerfile to build two standalone Tomcat servers on CentOS 7

Please adapt cmd scripts to shell scripts to run on Linux.

Setup

Different versions of jdk or tomcat can be used. Just modify the build.cmd accordingly.

To build the image

  build.cmd <name>

Launching Tomcat servers

Create in current directory the two following directories:

  • mount/user1/tomcat/logs
  • mount/user1/tomcat/logs
  run.cmd <name>

Tomcat servers will run on port 8080 and 18080.

Run the following to connect to the container:

  exec.cmd <name>

About

Dockerfile for setting up two standalone Tomcat servers in the same container.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published