Skip to content

A docker-compose recipe for a Tomcat server instance

Notifications You must be signed in to change notification settings

drmalex07/docker.tomcat

Repository files navigation

docker.tomcat

A docker-compose recipe for a Tomcat server instance

Prepare directory

Create a directory to hold secrets (to be mounted in container):

mkdir secrets
# edit secrets/db-password and secrets/manager-password ...

Copy docker-compose.yml.example to docker-compose.yml and edit to adjust to your needs.

Place your provided dependencies (e.g. driver JAR for the database resource) under dependency, and define relevant bind mounts inside docker-compose.yml.

Place your webapps under webapps and define a relevant bind mount inside docker-compose.yml

Run

Build local image:

docker-compose build

Run server:

docker-compose up tomcat

About

A docker-compose recipe for a Tomcat server instance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published