Wow! That must have been a frustrating learning experience. Thanks for saving us the grief.
@toobprojects4 ай бұрын
Brilliant stuff. Loving the Java 21 String Templates as well. Thanks for this tip! Awesome stuff indeed.
@bart.kotula10 ай бұрын
Awesome video! Thank you, Dan :)
@kaly7dev4873 Жыл бұрын
Thank you for your sharing Dan !
@praveens2272 Жыл бұрын
I was doing it just blindly 5432:5432, now i know the reason
@xCaleb Жыл бұрын
Adding the ":5432" part to the ports section in my docker-compose file actually breaks my app...
@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 Жыл бұрын
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 Жыл бұрын
Ah, that's the issue. `docker container ls` will show you what port on the host is mapped to the port in the container.
@odilhonislomov89548 ай бұрын
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.
@DanVega8 ай бұрын
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 Жыл бұрын
that was grate, didnt know sprint has docker support, i would try it on my next projeet!
@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 Жыл бұрын
I love your content ❤
@lukasleuenberger7821 Жыл бұрын
Shouldn't the database be 'spring-blog' at 4:45?
@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 Жыл бұрын
Awesome!
@idouxda Жыл бұрын
In my Docker Compose for Postgress that I'm using for Keycloak to secure my Microservices, I have this: ports: - "5432:5432"
@ajinkyakhete1151 Жыл бұрын
Can Anyone explain what happened ?
@agusp1951 Жыл бұрын
Thanks sir. Don't use dark mode in youtube, please!
@lorathbane Жыл бұрын
sure, go light, who doesn't like getting flashbanged, I guess we could just watch in sunglasses😎