https://github.com/giabar/gb-tomcat
Apache Tomcat 8 Docker image - https://hub.docker.com/r/giabar/gb-tomcat/
https://github.com/giabar/gb-tomcat
alpine apache docker docker-image dockerfile jre tomcat
Last synced: 3 months ago
JSON representation
Apache Tomcat 8 Docker image - https://hub.docker.com/r/giabar/gb-tomcat/
- Host: GitHub
- URL: https://github.com/giabar/gb-tomcat
- Owner: giabar
- License: gpl-3.0
- Created: 2016-05-05T09:48:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-09T10:01:24.000Z (over 6 years ago)
- Last Synced: 2025-01-20T12:32:49.300Z (4 months ago)
- Topics: alpine, apache, docker, docker-image, dockerfile, jre, tomcat
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Apache Tomcat 8.5.37 Docker image
> This Docker image is based on official Apache Tomcat 8.5.37 Alpine image (https://hub.docker.com/_/tomcat/).
## Try online
You can try that online! Click the below button:
[](https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/giabar/gb-tomcat/master/docker-compose.yml)
You can run the default command simply:
```
docker run -d -p 8080:8080 giabar/gb-tomcat
```VOLUME mount points are created at [/usr/local/tomcat/webapps] and [/usr/local/tomcat/logs]
Run your container with volume parameter if you want to mount the aboves volumes:
```
docker run \
-d \
-p 8080:8080 \
-v /data/webapps:/usr/local/tomcat/webapps \
-v /data/logs:/usr/local/tomcat/logs \
giabar/gb-tomcat
```Default credentials:
username: myadmin
password: yourpasswordIf you want to specify different credentials:
```
docker run \
-d \
-p 8080:8080 \
--env ADMIN_USER=myusername \
--env ADMIN_PASS=mypassword \
giabar/gb-tomcat
```