Skip to content

Commit 8dab77c

Browse files
committed
first commit
0 parents  commit 8dab77c

21 files changed

+1017
-0
lines changed

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
HELP.md
2+
target/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
!**/src/main/**/target/
5+
!**/src/test/**/target/
6+
7+
### STS ###
8+
.apt_generated
9+
.classpath
10+
.factorypath
11+
.project
12+
.settings
13+
.springBeans
14+
.sts4-cache
15+
16+
### IntelliJ IDEA ###
17+
.idea
18+
*.iws
19+
*.iml
20+
*.ipr
21+
22+
### NetBeans ###
23+
/nbproject/private/
24+
/nbbuild/
25+
/dist/
26+
/nbdist/
27+
/.nb-gradle/
28+
build/
29+
!**/src/main/**/build/
30+
!**/src/test/**/build/
31+
32+
### VS Code ###
33+
.vscode/

.mvn/wrapper/maven-wrapper.jar

57.4 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
2+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM openjdk:8
2+
EXPOSE 9090
3+
ADD target/carpet-rest-apis.jar carpet-rest-apis.jar
4+
ENTRYPOINT ["java","-jar","/carpet-rest-apis.jar"]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# carpet_BE
2+
Carpet BE API's

docker-compose.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: '2'
2+
3+
services:
4+
app:
5+
image: 'vinay0294/carpet-rest-apis.jar:latest'
6+
ports:
7+
- 9090:9090
8+
build:
9+
context: .
10+
container_name: app
11+
depends_on:
12+
- db
13+
environment:
14+
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/carpet
15+
- SPRING_DATASOURCE_USERNAME=postgres
16+
- SPRING_DATASOURCE_PASSWORD=mypass@123
17+
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
18+
19+
db:
20+
image: 'postgres:9.6'
21+
ports:
22+
- "5432:5432"
23+
container_name: db
24+
environment:
25+
- POSTGRES_USER=postgres
26+
- POSTGRES_DB=carpet
27+
- POSTGRES_HOST_AUTH_METHOD=trust

init.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CREATE USER postgres;
2+
CREATE DATABASE carpet;

mvnw

Lines changed: 316 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)