Ao subir o docker-compose up -d. Os containers subiram e estão todos up. Ao checar os endpoints do nginx ( localhost, info, metrics OK). No endpoint health, o database está DOWN. E o endpoint localhost/topicos mostra o seguinte erro: Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Aug 10 23:16:56 GMT 2023 There was an unexpected error (type=Internal Server Error, status=500).
E no localhost/health: { "status": "DOWN", "components": { "db": { "status": "DOWN", "details": { "error": "org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server." } }, "diskSpace": { "status": "UP", "details": { "total": 247570337792, "free": 147614670848, "threshold": 10485760, "exists": true } }, "ping": { "status": "UP" }, "redis": { "status": "UP", "details": { "version": "7.0.11" } } } }
Já dei permissões nas pastas chmod 777
Alguém pode me ajudar?