Creates application.yml and docker files

This commit is contained in:
szsa
2022-02-25 20:11:29 +01:00
parent 94bb26e3af
commit 42220398c6
4 changed files with 32 additions and 1 deletions

4
Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM openjdk:17
EXPOSE 8000
ADD target/app.jar app.jar
ENTRYPOINT ["java","-jar","app.jar"]

20
docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
version: '3.8'
services:
mongodb:
image: mongo:latest
container_name: "mongodb"
ports:
- "27017:27017"
reactive-timesheet-app:
image: reactive-timesheet-app
build:
context: .
dockerfile: Dockerfile
depends_on:
- mongodb
ports:
- "8080:8080"

View File

@@ -1 +0,0 @@

View File

@@ -0,0 +1,8 @@
spring:
application:
name: reactive-timesheet-app
data:
mongodb:
database: db_1
host: mongodb
port: 27017