Docker and jpress

Time:2021-9-15

Pull related image

docker pull hub.c.163.com/library/tomcat

docker pull hub.c.163.com/library/nginx

docker pull hub.c.163.com/library/mysql

Download the source file (War package)

jpress

Create dockerfile file

from hub.c.163.com/library/tomcat

MAINTAINER jsoner.chen

COPY app/jpress-v3.3.0.war /usr/local/tomcat/webapps

Run MySQL container

docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=jpress hub.c.163.com/library/mysql:latest

Building a Tomcat container

docker build .

ifconfig

Run jpress

docker run -d -p 8888:8080 jpress

This work adoptsCC agreement, reprint must indicate the author and the link to this article