Spring Docker Compose Module - Connecting to the Container Database

  Рет қаралды 15,413

Dan Vega

Dan Vega

Күн бұрын

Пікірлер: 21
@WaldoRochow
@WaldoRochow Жыл бұрын
Wow! That must have been a frustrating learning experience. Thanks for saving us the grief.
@toobprojects
@toobprojects 4 ай бұрын
Brilliant stuff. Loving the Java 21 String Templates as well. Thanks for this tip! Awesome stuff indeed.
@bart.kotula
@bart.kotula 10 ай бұрын
Awesome video! Thank you, Dan :)
@kaly7dev4873
@kaly7dev4873 Жыл бұрын
Thank you for your sharing Dan !
@praveens2272
@praveens2272 Жыл бұрын
I was doing it just blindly 5432:5432, now i know the reason
@xCaleb
@xCaleb Жыл бұрын
Adding the ":5432" part to the ports section in my docker-compose file actually breaks my app...
@DanVega
@DanVega Жыл бұрын
Try docker ps -a to get the container id and then running docker inspect on it and inspecting the port bindings. Maybe try deleting the container all together and starting over
@elliothuntington8980
@elliothuntington8980 Жыл бұрын
I would love to see you make a video on configuring a reactive CRUD application using Java 21, HashiCorp Vault, Liquibase, and R2DBC, all services configured and running inside a docker compose.
@avalagum7957
@avalagum7957 Жыл бұрын
Ah, that's the issue. `docker container ls` will show you what port on the host is mapped to the port in the container.
@odilhonislomov8954
@odilhonislomov8954 8 ай бұрын
Thanks a lot. Nice info. So does this mean: "when server is restarts containers will automatic restart"? It'll be wonderful if you give real working server example with docker-compose file.
@DanVega
@DanVega 8 ай бұрын
There is a property that will manage the lifecycle and the default is to start and stop the container when the spring application restarts. If you only wanted Spring to start the container and not shut it down each time you can change this behavior spring.docker.compose.lifecycle-management=start_and_stop
@gasparcalix2095
@gasparcalix2095 Жыл бұрын
that was grate, didnt know sprint has docker support, i would try it on my next projeet!
@kensaitakeso
@kensaitakeso Жыл бұрын
thanks Dan. it is curious that Gradle still doesn't support all features of JAva 21 so maven is best option for experiments
@ayed-al-nator
@ayed-al-nator Жыл бұрын
I love your content ❤
@lukasleuenberger7821
@lukasleuenberger7821 Жыл бұрын
Shouldn't the database be 'spring-blog' at 4:45?
@ylioo
@ylioo Жыл бұрын
is there any way we can use this for testing as well, because I think the spring boot team had disabled it for testing
@pedro_alonso
@pedro_alonso Жыл бұрын
Awesome!
@idouxda
@idouxda Жыл бұрын
In my Docker Compose for Postgress that I'm using for Keycloak to secure my Microservices, I have this: ports: - "5432:5432"
@ajinkyakhete1151
@ajinkyakhete1151 Жыл бұрын
Can Anyone explain what happened ?
@agusp1951
@agusp1951 Жыл бұрын
Thanks sir. Don't use dark mode in youtube, please!
@lorathbane
@lorathbane Жыл бұрын
sure, go light, who doesn't like getting flashbanged, I guess we could just watch in sunglasses😎
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 18 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 16 МЛН
Get started with Docker and Tailscale
14:04
Tailscale
Рет қаралды 33 М.
Docker Compose Tutorial
33:02
Programming with Mosh
Рет қаралды 467 М.
Intro to Docker [with Java Examples]
21:17
JetBrains
Рет қаралды 72 М.
Docker Tutorial for Beginners
50:38
mCoding
Рет қаралды 78 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 18 МЛН