I'm trying to run my spring boot application on AWS EC2 Windows Server by pulling it from github and installing using maven and then java -jar command to run it. It's only working on localhost but not accessable using public IPv4. I use port 8085 for application and added custom inbound port 8085 in security group.
Related
hello I have developed a spring boot application using spring sts IDE and i build jar file then i deployed to my cyberpanel and then i follow this tutorial
https://computingforgeeks.com/how-to-run-java-jar-application-with-systemd-on-linux/
and it work fine but in http not in https
[http://remoteServerAddress:8080/]
my website it's secure with le'ts encrypte
i wont my website run on https and without port 8080 can anyone know how to do it ?
I have a Java Spring Boot application which uses ActiveMQ from a Docker Image. It is now completed. Now how to deploy it to Heroku?
The application is based on ActiveMQ. So I also need to deploy it.
I have a java spring boot application.
This application make use of cassandra as data storage and kafka for messaging.
I am using the image for cassandra and zookeeper and kafka locally to run them.
I also created DockerFile for my web app, and build the file to create a image.
My application when run, connect to cassandra database.
When I run the application(intelij), it works fine by connecting to cassandra(running as docker) but when I run docker image locally for the same application, the app image container is not able to connect to cassandra running locally and hence fails.
What do I need to do such that I can run the docker container for the app and also connecting to cassandra.
I don't know the exact specifics of your connection details (host:port) that you are using in your application but the most common mistake in this situation is using localhost.
localhost in the docker container is not the same as localhost when you are starting your application outside the docker container. Therefore when starting the application inside the docker container you have to specify a different hostname for your cassandra deployment.
By default docker will use the container id as the container hostname so you would have to replace localhost with your cassandra container id or alternatively start the cassandra container using --hostname in order to define a hostname that you wish to use.
In the end a more elegant solution would be to use a docker compose file where the hostname of each service is the service name. This is very helpful for starting together multiple services that "talk" to each other.
You can find everything I explained to you regarding the hostnames of containers here.
Also here you can find a nice intro into docker compose.
version: '3'
services:
web:
build: .
ports:
- "5000:5000"
redis:
image: "redis:alpine"
In this example the hostnames for each service are web and redis. You can apply this to your compose file and use the corresponding hostnames for cassandra and kafka.
We are working on spring boot application (backend) and angular6 (frontend)
To deploy our application, we used compute engine of google cloud platform.
We install Java 8, spring boot cli, and postgreSQL, our database.
When we run the application locally to the Virtual machine, everything is ok.
To deploy the application, we follow these steps for configuration:
But at least, we cannot get the application running,
here the screenshot:
Your help is more than welcome!
I am using docker swarm & Traefic to manage and deploy my containers. Unfortunately, I didn't set it up and not sure details, all I do is just deploy my app there and everything taken care of.
I am running Spring Boot Apps, each app could have multiple instances.
Docker file is pretty simple,
basically
ENTRYPOINT java -jar /app.jar
And we use Traefic to manage it as well.
I am trying to connect jconsole to different apps but not sure how to do it for remote app that runs in docker swarm remotely. Locally no issues.
I read on an internet about setting JMX setting when starting java app but all information about connecting to app running in docker locally or with static IP. I imagine I do not have static IP to add to my configuration, it always assigned dynamicly.
Any advise or where to start look would be gladly appreciated
To map multiple containers, you can use the container hostname.
When you run a container like "docker run -ti ... --hostname test1 ..." or run a service "docker service create ... name= test1...".
So, you have to hitting via hostname.
Regards.