Spring Boot - Docker and Deployment
You wrote this
What is the likely problem?
docker-compose.yml but your Spring Boot app fails to connect to the database:services:
app:
image: springboot-app
ports:
- "8080:8080"
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://localhost:5432/mydb
db:
image: postgres
environment:
POSTGRES_PASSWORD: exampleWhat is the likely problem?
