Im trying to write a docker-compose for a lavagna and mysql container but the Keep getting a 503 on the webpage and in the logs i see the following
lavagna_server | 16:12:24.435 [main] INFO io.lavagna.common.LavagnaEnvironment - For property datasource.dialect, the value is: MYSQL
lavagna_server | 16:12:24.447 [main] INFO io.lavagna.common.LavagnaEnvironment - For property datasource.url, the value is: jdbc:mysql://localhost:3306/lavagna
lavagna_server | 16:12:24.447 [main] INFO io.lavagna.common.LavagnaEnvironment - For property datasource.username, the value is: sa
lavagna_server | 16:12:24.448 [main] INFO io.lavagna.common.LavagnaEnvironment - For property spring.profiles.active, the value is: dev```
and this
```lavagna_server | Caused by: java.net.ConnectException: Connection refused (Connection refused)````
this is the script im using to start the server
```#!/bin/sh
java -Xms64m -Xmx128m -Ddatasource.dialect="MYSQL" \
-Ddatasource.url="jdbc:mysql://localhost:3306/lavagna?useUnicode=true&characterEncoding=utf-8&useSSL=false" \
-Ddatasource.username="root" \
-Ddatasource.password="root" \
-Dspring.profiles.active="dev" \
-jar ./target/lavagna-jetty-console.war --headless
and as for the lavagna its being created by a sql file mounted onto docker-entrypoint-intit db and the only line written in that file is CREATE DATABASE lavagna CHARACTER SET utf8 COLLATE utf8_bin;
Im trying to write a docker-compose for a lavagna and mysql container but the Keep getting a 503 on the webpage and in the logs i see the following
and my docker-compose
volumes: db-data: networks: backend:```
and as for the lavagna its being created by a sql file mounted onto docker-entrypoint-intit db and the only line written in that file is CREATE DATABASE lavagna CHARACTER SET utf8 COLLATE utf8_bin;