readme: added `Setting the manager password on first run` configuration section

This commit is contained in:
Sameer Naik 2015-08-13 20:02:22 +05:30
parent 13b8963076
commit 8ec83ef07a
1 changed files with 19 additions and 0 deletions

View File

@ -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.