[JAVA] Run Payara with Docker

This is the 19th day of Payara Advent Calendar 2016.

Payara has a Docker image, which is published on the Docker Hub.

From this, the command to run the application using the Payara Micro image is as follows.

docker run -d --name=helloworld -p 8080:8080 \
           -v `pwd`/helloworld/build/libs:/opt/payara/deployments:ro \
           payara/micro java -jar /opt/payara/payara-micro.jar \
           --deploy /opt/payara/deployments/helloworld.war

I am trying to access port 8080 with -p. -v mounts the directory where the WAR file is stored ( build / libs in the above) to / opt / payara / deployments. After that, specify the image (payara / micro) and write the java command to move Payara Micro.

As mentioned above, I tried to move Payara Micro, which can be easily operated with just one JAR, more easily using Docker (I personally find it easier because I don't need to fetch the JAR). .. Docker Hub also has payara / server-full, payara / server-web, and payara / microprofile, so I'll play with them a little more.

I have an app on GitHub that just makes Hello world to try Payara Micro on Docker, so please try it if you like.

Above ⛄️

Recommended Posts

Run Payara with Docker
Run Pico with docker
Run TAO Core with Docker
Run Rails whenever with docker
Run lambda with custom docker image
Run SQL Server with Docker ToolBox
Make JupyterLab run anywhere with docker
Run Ubuntu + ROS with Docker on Mac
How to run Blazor (C #) with Docker
Launch MariaDB with Docker
Rails deploy with Docker
Explode Docker with WSL2
Use Puphpeteer with Docker
Run JSP Hello World with Tomcat on Docker
Operate Emby with Docker
Try WildFly with Docker
Create jupyter notebook with Docker and run ruby
Use ngrok with Docker
[Docker] Connection with MySQL
Php settings with Docker
Getting Started with Docker
Disposable PHP with Docker
Install Composer with Docker
Run phpunit on Docker
Run old Vivado with Docker guest OS as CentOS 7.4
Run Android instrumentation unit tests with GitLab CI + Docker
Run Mosquitto with Docker and try WebSocket communication with MQTT
Pytorch execution environment with Docker
What is docker run -it?
Run batch with docker-compose with Java batch
Run VS Code on Docker
Deploy with EC2 / Docker / Laravel
Docker management with VS Code
Run openvpn on Docker (windows)
Set up GitLab with docker
Run Tensorflow with THETA V
Run LIFF with Spring Boot
Decomposing the Docker run command. .. ..
Get started with DynamoDB with docker
Docker autostart settings with wsl2
[Docker] Rails 5.2 environment construction with docker
Spring Boot starting with Docker
Build docker environment with WSL
Version control CocoaPods with Docker
Web application built with docker (1)
I tried BIND with Docker
React environment construction with Docker
Build DynamoDB local with Docker
Run Java VM with WebAssembly
[Docker] Use whenever with Docker + Rails
Using PlantUml with Honkit [Docker]
Write DiscordBot to Spreadsheets Write in Ruby and run with Docker
Rails + MySQL environment construction with Docker
Create a Vue3 environment with Docker!
Node.js environment construction with Docker Compose
Deploy a Docker application with Greengrass
Run SSE (Server-Sent-Event) samples on docker
Build Couchbase local environment with Docker
Install java with Ubuntu 16.04 based Docker
Run LibreOffice Basic macros in Docker
Steps to run docker on Mac