You can easily start the demo server locally by using the corresponding docker images that are avaiable at https://hub.docker.com/r/captaincasa/captaincasademo/tags
Either select the image “captaincasa/captaincasademo:jakarta-latest” or use a dedicated version e.g. “captaincasa/captaincasademo:jakarta-20250602”.
The image consists out of:
The most simple way to start is:
version: "3.8"
services:
cc-projekt:
container_name: CC-DemoServer
image: captaincasa/captaincasademo:jakarta-latest
restart: always
environment:
- TZ=Europe/Berlin
ports:
- "52000:8080"
volumes:
- ./tomcatlogs:/usr/local/tomcat/logs
- ./demologs:/usr/local/tomcat/work/Catalina/localhost/demos
docker compose -f start-captaincasademo-52000.yml up -d
http://localhost:52000/demos
As you can see in the “.yml” file: the image “captaincasa/captaincasademo:jakarta-latest” is used. The internal Tomcat port 8080 is mapped to the external port 52000. And the internal directories, in which logging is done, are mapped to your external local directories (which are created within your directory).
…for these ones knowing Docker and how to create images: the creation of a Docker image is super simple: the content of “Dockerfile”, which is controlling the creation of our Docker image, is:
FROM tomcat:11-jre21-temurin-jammy
COPY demos.war /usr/local/tomcat/webapps