From 8ec83ef07a89df312f2b39d8088cc7aab322900b Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Thu, 13 Aug 2015 20:02:22 +0530 Subject: [PATCH] readme: added `Setting the manager password on first run` configuration section --- bitnami/tomcat/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bitnami/tomcat/README.md b/bitnami/tomcat/README.md index 2e4cc564d75c..43284c34faf8 100644 --- a/bitnami/tomcat/README.md +++ b/bitnami/tomcat/README.md @@ -86,6 +86,25 @@ docker run -p 8080:8080 bitnami/tomcat Access your web server in the browser by navigating to [http://localhost:8080](http://localhost:8080/). +# Configuration + +## Setting the `manager` password on first run + +Passing the `TOMCAT_PASSWORD` environment variable when running the image for the first time will set the password of the `manager` user to the value of `TOMCAT_PASSWORD`. + +```bash +docker run --name tomcat -e TOMCAT_PASSWORD=password123 bitnami/tomcat +``` + +or using Docker Compose: + +``` +tomcat: + image: bitnami/tomcat + environment: + - TOMCAT_PASSWORD=password123 +``` + # Logging The Bitnami Tomcat Docker Image supports two different logging modes: logging to stdout, and logging to a file.