Commit eaa78fb5 authored by Kyle Muldoon's avatar Kyle Muldoon

built out docker-compose, having issues connecting to db

parent 95a072d4
FROM openjdk:8-jdk-alpine
# EXPOSE 8080
ARG JAR_FILE=build/libs/employeeservice-0.0.1-SNAPSHOT.jar
ADD ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
......@@ -19,9 +19,12 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'junit:junit:4.12'
implementation 'junit:junit:4.12'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
// runtimeOnly 'com.h2database:h2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'com.h2database:h2'
}
test {
......
No preview for this file type
......@@ -41,7 +41,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.006s</div>
<div class="counter">0.003s</div>
<p>duration</p>
</div>
</td>
......@@ -79,7 +79,7 @@
</thead>
<tr>
<td class="success">contextLoads()</td>
<td class="success">0.006s</td>
<td class="success">0.003s</td>
<td class="success">passed</td>
</tr>
</table>
......@@ -87,12 +87,12 @@
<div id="tab1" class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>2021-04-19 13:27:20.819 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests], using SpringBootContextLoader
2021-04-19 13:27:20.820 INFO 34174 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
2021-04-19 13:27:20.821 INFO 34174 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: EmployeeServiceApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2021-04-19 13:27:20.825 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.EmployeeServiceApplicationTests
2021-04-19 13:27:20.827 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
2021-04-19 13:27:20.827 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@4a1208b, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@6b986f66, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@668d4043, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@600ecf6e, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6da61e9c, org.springframework.test.context.support.DirtiesContextTestExecutionListener@45edaf11, org.springframework.test.context.transaction.TransactionalTestExecutionListener@496e60b7, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@5f0db34b, org.springframework.test.context.event.EventPublishingTestExecutionListener@20204c8, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@2a3fa6be, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@10ee1096, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@22cb7e2b, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@307d1afe, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@67a05019, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@72a96db]
<pre>2021-04-21 17:49:26.054 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests], using SpringBootContextLoader
2021-04-21 17:49:26.055 INFO 71961 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
2021-04-21 17:49:26.056 INFO 71961 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: EmployeeServiceApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2021-04-21 17:49:26.060 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.EmployeeServiceApplicationTests
2021-04-21 17:49:26.061 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
2021-04-21 17:49:26.062 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2efdf7f9, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@47b9e423, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@49696170, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@20ee5dd, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@438d985a, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4b1de4f4, org.springframework.test.context.transaction.TransactionalTestExecutionListener@497d7e06, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3c284af9, org.springframework.test.context.event.EventPublishingTestExecutionListener@13c85a6e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@37d626a7, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@1579e315, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@6bf81cc1, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@3ab230fa, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@3cd7da15, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@666cf7d1]
</pre>
</span>
</div>
......@@ -104,7 +104,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 19, 2021, 1:27:21 PM</p>
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 21, 2021, 5:49:26 PM</p>
</div>
</div>
</body>
......
......@@ -38,7 +38,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.212s</div>
<div class="counter">0.199s</div>
<p>duration</p>
</div>
</td>
......@@ -97,7 +97,7 @@
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.006s</td>
<td>0.003s</td>
<td class="success">100%</td>
</tr>
<tr>
......@@ -107,7 +107,7 @@
<td>3</td>
<td>1</td>
<td>0</td>
<td>0.206s</td>
<td>0.196s</td>
<td class="failures">66%</td>
</tr>
</tbody>
......@@ -134,7 +134,7 @@
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.006s</td>
<td>0.003s</td>
<td class="success">100%</td>
</tr>
<tr>
......@@ -144,7 +144,7 @@
<td>3</td>
<td>1</td>
<td>0</td>
<td>0.206s</td>
<td>0.196s</td>
<td class="failures">66%</td>
</tr>
</tbody>
......@@ -158,7 +158,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 19, 2021, 1:27:21 PM</p>
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 21, 2021, 5:49:26 PM</p>
</div>
</div>
</body>
......
......@@ -40,7 +40,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.006s</div>
<div class="counter">0.003s</div>
<p>duration</p>
</div>
</td>
......@@ -83,7 +83,7 @@
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.006s</td>
<td>0.003s</td>
<td class="success">100%</td>
</tr>
</table>
......@@ -96,7 +96,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 19, 2021, 1:27:21 PM</p>
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 21, 2021, 5:49:26 PM</p>
</div>
</div>
</body>
......
......@@ -40,7 +40,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.206s</div>
<div class="counter">0.196s</div>
<p>duration</p>
</div>
</td>
......@@ -95,7 +95,7 @@
<td>3</td>
<td>1</td>
<td>0</td>
<td>0.206s</td>
<td>0.196s</td>
<td class="failures">66%</td>
</tr>
</table>
......@@ -108,7 +108,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 19, 2021, 1:27:21 PM</p>
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 21, 2021, 5:49:26 PM</p>
</div>
</div>
</body>
......
spring.datasource.url=jdbc:h2:mem:dataSource
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.datasource.url=jdbc:mysql://db:8081/employeedb
spring.datasource.username=root
spring.datasource.password=password
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL57Dialect
spring.jpa.generate-ddl=false
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.datasource.schema=classpath:employee.sql
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=none
spring.h2.console.enabled=true
info.app.name=Employee Service Application Actuator
management.endpoint.beans.enabled=true
management.endpoints.web.exposure.include=*
info.app.name=Employee Service Application Actuator
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.nisum.employeeservice.EmployeeServiceApplicationTests" tests="1" skipped="0" failures="0" errors="0" timestamp="2021-04-19T20:27:20" hostname="USA-MAC-NIS1851.local" time="0.006">
<testsuite name="com.nisum.employeeservice.EmployeeServiceApplicationTests" tests="1" skipped="0" failures="0" errors="0" timestamp="2021-04-22T00:49:26" hostname="USA-MAC-NIS1851.local" time="0.003">
<properties/>
<testcase name="contextLoads()" classname="com.nisum.employeeservice.EmployeeServiceApplicationTests" time="0.006"/>
<system-out><![CDATA[2021-04-19 13:27:20.819 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests], using SpringBootContextLoader
2021-04-19 13:27:20.820 INFO 34174 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
2021-04-19 13:27:20.821 INFO 34174 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: EmployeeServiceApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2021-04-19 13:27:20.825 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.EmployeeServiceApplicationTests
2021-04-19 13:27:20.827 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
2021-04-19 13:27:20.827 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@4a1208b, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@6b986f66, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@668d4043, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@600ecf6e, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6da61e9c, org.springframework.test.context.support.DirtiesContextTestExecutionListener@45edaf11, org.springframework.test.context.transaction.TransactionalTestExecutionListener@496e60b7, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@5f0db34b, org.springframework.test.context.event.EventPublishingTestExecutionListener@20204c8, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@2a3fa6be, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@10ee1096, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@22cb7e2b, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@307d1afe, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@67a05019, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@72a96db]
<testcase name="contextLoads()" classname="com.nisum.employeeservice.EmployeeServiceApplicationTests" time="0.003"/>
<system-out><![CDATA[2021-04-21 17:49:26.054 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests], using SpringBootContextLoader
2021-04-21 17:49:26.055 INFO 71961 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
2021-04-21 17:49:26.056 INFO 71961 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: EmployeeServiceApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2021-04-21 17:49:26.060 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.EmployeeServiceApplicationTests
2021-04-21 17:49:26.061 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
2021-04-21 17:49:26.062 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2efdf7f9, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@47b9e423, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@49696170, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@20ee5dd, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@438d985a, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4b1de4f4, org.springframework.test.context.transaction.TransactionalTestExecutionListener@497d7e06, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3c284af9, org.springframework.test.context.event.EventPublishingTestExecutionListener@13c85a6e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@37d626a7, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@1579e315, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@6bf81cc1, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@3ab230fa, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@3cd7da15, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@666cf7d1]
]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>
Manifest-Version: 1.0
Main-Class: org.springframework.boot.loader.JarLauncher
Start-Class: com.nisum.employeeservice.EmployeeServiceApplication
Spring-Boot-Version: 2.4.4
Spring-Boot-Classes: BOOT-INF/classes/
Spring-Boot-Lib: BOOT-INF/lib/
Spring-Boot-Classpath-Index: BOOT-INF/classpath.idx
Spring-Boot-Layers-Index: BOOT-INF/layers.idx
version: "3.9"
services:
db:
image: mysql
restart: always
environment:
MYSQL_DATABASE: 'employeedb'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '8081:3306'
web:
build: .
ports:
- "8080:8080"
spring.datasource.url=jdbc:h2:mem:dataSource
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.datasource.url=jdbc:mysql://db:8081/employeedb
spring.datasource.username=root
spring.datasource.password=password
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL57Dialect
spring.jpa.generate-ddl=false
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.datasource.schema=classpath:employee.sql
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=none
spring.h2.console.enabled=true
info.app.name=Employee Service Application Actuator
management.endpoint.beans.enabled=true
management.endpoints.web.exposure.include=*
info.app.name=Employee Service Application Actuator
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment