/apache-mod-uk-tomcat-docker

Dockerize Apache Mod_JK with Tomcat

Primary LanguageShell

apache-mod-jk-tomcat-docker

Dockerize Apache mod_jk with Tomcat

dependencies

  • docker

how to build httpd image

  • go to docker/httpd folder
  • run this command
$ docker build -t httpd .

how to build tomcat image

  • go to docker/tomcat folder
  • run this command
$ docker build -t tomcat .

how to run tomcat image (tomcat image first)

$ docker run -d -p 8009:8080 --name tomcat tomcat

how to run httpd image (tomcat image first)

$ docker run -d -p 80:80 --link tomcat:tomcat --name httpd httpd

debugging

$ docker exec -it httpd bash
$ docker exec -it tomcat bash