D
D
Danil2021-12-06 08:30:25
Java
Danil, 2021-12-06 08:30:25

Working with java from docker?

There is an ubuntu server with Docker installed on it
Actually, I need to deploy a spring site, I mean that I will use different containers for the database, and the site itself, and accordingly docker compose The
question is how to work with a remote server, how to deploy a project? to intellij? And in general, what are the normal guides and tips)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan, 2021-12-06
@Danicimo

I have an ubuntu server with Docker installed on it

If you plan to use docker compose, then don't forget to install that too, in addition to docker.
I mean that I will use different containers for the database, and the site itself, and accordingly docker compose

For the convenience of deploying, you can use docker compose, but this can be done without it too.
how to work with a remote server, how to deploy a project

You can also look into CI/CD for ease of deployment. You can also build your projects with gitlab scripts, etc.
Is it possible to connect somehow docker to intellij?

Intellij itself has a docker plugin that allows you to quickly deploy applications during development. But perhaps it's not the best idea to deploy the application to prroduction from intellij idea.
And in general, what are the normal guides and tips)

I will even say more - there are separate online courses for java developers on docker
Here, for example - https://www.udemy.com/course/docker-for-java-devel...
Although, it can be easier (open the docker documentation and read it).

A
al_gon, 2021-12-06
@al_gon

https://spring.io/blog/2020/01/27/creating-docker-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question