This guide uses Docker to run Apache Tomcat.
For Docker installation, see Docker.
Note: This setup should work on current stable versions of major Linux distributions including Debian 12/13, RHEL 9/10, and their derivatives when they become available.
Create a directory to store your configuration and compose files.
mkdir -p /opt/apache-tomcat
cd /opt/apache-tomcat
Define a container for Apache Tomcat.
services:
apache-tomcat:
image: tomcat:11.0-jdk17-temurin
ports:
- "8080:8080"
volumes:
- ./config:/usr/local/tomcat/conf
Start the container in the background.
docker compose up -d
tomcat.tomcat:11.0-jdk17-temurin) instead of latest.Any questions?
Feel free to contact us. Find all contact information on our contact page.