Public Repository

Last pushed: 9 months ago
Short Description
tomcat docker container with 2 users
Full Description

Run Server

run tomcat server

docker run -it --rm --publish=8080:8080 tjenwellens/tomcat

run with volume for dev purposes (no redeploy needed, only reload)

docker run -it --rm -p=8080:8080 -v $(pwd)/target/springapp:/usr/local/tomcat/webapps/springapp tjenwellens/tomcat

run with volume and remote debugger

docker run -it --rm -p=8080:8080 -p=1043:1043 -e JPDA_ADDRESS=1043 -v $(pwd)/target/springapp:/usr/local/tomcat/webapps/springapp tjenwellens/tomcat /bin/sh -c "catalina.sh jpda start; tail -F -n0 /etc/hosts"

tomcat-users.xml

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <!--manager-gui is needed to access <url>/manager/html-->
  <role rolename="manager-gui"/>
  <!--manager-script is needed to access <url>/manager/text-->
  <role rolename="manager-script"/>

  <user username="admin" password="admin" roles="manager-gui"/>
  <user username="mgrscript" password="mgrscript" roles="manager-script"/>
</tomcat-users>

Github

https://github.com/TjenWellens/tomcat-docker

Docker Pull Command
Owner
tjenwellens

Comments (0)