Start working on docker compose.

This commit is contained in:
Paulo Gustavo Veiga 2024-02-03 20:25:15 -08:00
parent c976046fca
commit f046bcaebc
5 changed files with 38 additions and 0 deletions

5
wise-webapp/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM amazoncorretto:17.0.10
VOLUME /tmp
COPY target/wisemapping-api.jar app.jar
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /app.jar ${0} ${@}"]

View File

@ -0,0 +1,9 @@
services:
database:
image: 'postgres:15.2'
ports:
- '5432'
environment:
- 'POSTGRES_USER=myuser'
- 'POSTGRES_DB=mydatabase'
- 'POSTGRES_PASSWORD=secret'

View File

@ -214,6 +214,7 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -222,6 +223,17 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<finalName>wisemapping-api</finalName>
</configuration>
</execution>
</executions>
<!-- <configuration>-->
<!-- <jvmArguments>-->
<!-- -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005-->

View File

@ -1,6 +1,12 @@
# SpringBoot Configuration ...
spring:
output:
ansi:
enabled=always:
application:
name: wisemapping-api
title: wisemapping-api
datasource:
driver-class-name: org.hsqldb.jdbc.JDBCDriver
password: ''

View File

@ -0,0 +1,6 @@
| | |' |\ /| ' /\ |~~\~|~
| | ||(~/~/| \/ |/~~||~~\|~~\||/~\ /~~| /__\ |__/ |
\/ \/ |_)\/_| |\__||__/|__/|| |\__| / \| _|_
| | \__|
${application.title} ${application.version}
Powered by Spring Boot ${spring-boot.version}