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 Tomcat image “tomcat:11-jre21-temurin-jammy”
  • …and the demo-server’s .war file which is deployed into the Tomcat

The most simple way to start is:

  • Create a directory in your file system
  • Create the file “start-captaincasademo-5200.yml” in this directory with the following content. – Please pay attention: blank spaces are meaningful in .yml files!
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
  • Open a command prompt in this directory and call:
docker compose -f start-captaincasademo-52000.yml up -d
  • Then open the following URL within your browser
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

CaptainCasa GmbH
Hindedmithweg 13
D-69245 Bammental
Phone: +49 6223 484147
Mail: info@CaptainCasa.com

Contact
Impressum