Creates application.yml and docker files
This commit is contained in:
4
Dockerfile
Normal file
4
Dockerfile
Normal 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
20
docker-compose.yml
Normal 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"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
8
src/main/resources/application.yml
Normal file
8
src/main/resources/application.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
spring:
|
||||
application:
|
||||
name: reactive-timesheet-app
|
||||
data:
|
||||
mongodb:
|
||||
database: db_1
|
||||
host: mongodb
|
||||
port: 27017
|
||||
Reference in New Issue
Block a user