Lucee application engine running on Apache Tomcat J2EE application server.
Tomcat 9.0 with OpenJDK 11 (recommended)
5.3.9.133-tomcat9.0-jdk11-openjdk
,5.3.9.133
,5.3
,latest
(Dockerfile)5.3.9.133-nginx-tomcat9.0-jdk11-openjdk
,5.3.9.133-nginx
,5.3-nginx
(Dockerfile.nginx)
Tomcat 9.0 with OpenJDK 8
5.3.9.133-tomcat9.0-jdk8-openjdk
, (Dockerfile)5.3.9.133-nginx-tomcat9.0-jdk8-openjdk
(Dockerfile.nginx)
The Lucee Docker image tags follow a naming convention which is used to produce "simple tags" that are updated with each release (e.g. 5.3
, 5.3-nginx
) as well as "full tags" which allow for very specific version targeting (e.g. 5.3.9.133-tomcat9.0-jdk11-openjdk
).
The tag naming convention is;
LUCEE_VERSION[-RELEASE_TYPE][-light][-nginx][-TOMCAT_VERSION-JRE_VERSION]
LUCEE_VERSION
is the Lucee Version number string. For simple tags it may optionally be in theMAJOR.MINOR
format (e.g.5.3
) and for full tags it's in theMAJOR.MINOR.PATCH.BUILD
format (e.g.5.3.9.133
). Snapshot, RC and Beta builds always include the full version number.RELEASE_TYPE
is the type of release; omitted for Releases, otherwiseSNAPSHOT
,RC
orBETA
-light
(optional) is a build with the Lucee "Light" JAR file, WITHOUT any extensions (users must install extensions separately, this includes database drivers, ORM, ESAPI, S3, image handling, etc)-nginx
(optional) is a build with the NGINX web server bundled and configured-TOMCAT_VERSION-JRE_VERSION
is the Tomcat major and minor version and OpenJDK major version of the build to allow users to choose between different combinations (e.g.tomcat9.0-jdk11-openjdk
vstomcat9.0-jdk8-openjdk
). This is omitted for "simple tags" where the recommended Tomcat and OpenJDK versions are used.
Note: The official Tomcat images have removed support for Alpine and so the Lucee -alpine
variant can no longer be supported. If the Tomcat base images add support for Alpine in the future then we will look to support the -alpine
variant again.
Tomcat 8.5 with OpenJDK 8
5.2.9.31-tomcat8.5-jre8
,5.2.9.31
,5.2
,latest
(Dockerfile)5.2.9.31-nginx-tomcat8.5-jre8
,5.2.9.31-nginx
,5.2-nginx
(Dockerfile.nginx)5.2.9.31-tomcat8.5-jre8-alpine
,5.2.9.31-alpine
,5.2-alpine
(Dockerfile.nginx.alpine)5.2.9.31-nginx-tomcat8.5-jre8-alpine
,5.2.9.31-nginx-alpine
,5.2-nginx-alpine
(Dockerfile.nginx.alpine)
5.3.7.34-SNAPSHOT-tomcat9.0-jdk11-openjdk
,5.3.7.34-SNAPSHOT
5.3.7.34-SNAPSHOT-nginx-tomcat9.0-jdk11-openjdk
,5.3.7.34-SNAPSHOT-nginx
5.3.7.34-RC-tomcat9.0-jdk11-openjdk
,5.3.7.34-RC
5.3.7.34-RC-nginx-tomcat9.0-jdk11-openjdk
,5.3.7.34-RC-nginx
5.3.1.15-BETA-tomcat9.0-jre11
,5.3.1.15-BETA
5.3.1.15-BETA-nginx-tomcat9.0-jre11
,5.3.1.15-BETA-nginx
The SNAPSHOTS
Docker image builds are automatically generated after a successful Lucee build. The 5.3.7.34-SNAPSHOT
version number above is an example of the latest SNAPSHOT version number; check the Docker Hub tags and/or the Lucee Downloads page to see the latest SNAPSHOT version numbers.
The RC
and Beta
builds are manually triggered when they are announced.
For more information about Lucee versions and extensions see the Lucee Downloads page.
For the latest stable release with Tomcat only:
FROM lucee/lucee:5.3
# Lucee configs
COPY config/lucee/ /opt/lucee/web/
# Code
COPY www /var/www
For the latest stable release with NGINX and Tomcat:
FROM lucee/lucee:5.3-nginx
# NGINX configs
COPY config/nginx/ /etc/nginx/
# Lucee configs
COPY config/lucee/ /opt/lucee/web/
# Code
COPY www /var/www
-
JVM is set to use
/dev/urandom
as an entropy source for secure random numbers to avoid blocking Tomcat on startup. -
Tomcat is configured to skip the default scanning of Jar files on startup, significantly improving startup time.
The default configuration serves a single application for any hostname on the listening port. Multiple applications can be supported by editing the server.xml in the Tomcat config.
Lucee server's Tomcat installation listens on port 8888.
This base image exposes port 8080 to linked containers but its not used. You must publish or expose port 8888 if you wish to access Tomcat from your installation.
The Lucee Admin URL is /lucee/admin/
from the exposed port. No admin passwords are set.
THIS IS NOT A SECURE CONFIGURATION FOR PRODUCTION ENVIRONMENTS! It is strongly recommended that you secure the container by:
- Changing the server password
- Using IP or URL filtering to restrict access to the Lucee Admin
- Following recommended security practices such as the Lucee Lockdown Guide
The NGINX tagged Docker images are configured to deny access to the Lucee Admin by default in the default.conf
.
Web root for default site: /var/www
Configuration folders:
- Tomcat config:
/usr/local/tomcat/conf
- Lucee config for default site:
/opt/lucee/web
- Lucee server context:
/opt/lucee/server/lucee-server/context
Log folders:
- Tomcat logs:
/usr/local/tomcat/logs
- Lucee logs for default site:
/opt/lucee/web/logs
The default image contains scripts that use the following environment variables if they are set in the container.
LUCEE_JAVA_OPTS
: Additional JVM parameters for Tomcat. Used by /usr/local/tomcat/bin/setenv.sh. Default: "-Xms64m -Xmx512m".
The older Lucee Base Images will remain available for the projects that are using them, though the build process for those images is considered "legacy" as they have been superseded by the new build matrix builds.
The base images can be accessed in the existing Docker Hub repositories and the source is now in the legacy
branch;
https://github.com/lucee/lucee-dockerfiles/tree/legacy
The Lucee Dockerfiles project is maintained by the community. Chief protagonist is @justincarter (Justin Carter of Daemon). Bug reports and pull requests are most welcome.
Special thanks to @rye (Kristofer Rye) and @hawkrives (Hawken Rives) for their work on the Travis build matrix.
The Docker files and config files are available under the MIT License. The Lucee engine, Tomcat, NGINX and any other softwares are available under their respective licenses.