File tree Expand file tree Collapse file tree 4 files changed +51
-20
lines changed
java/com/jumongweb/GithubStats/data/model Expand file tree Collapse file tree 4 files changed +51
-20
lines changed Original file line number Diff line number Diff line change 1+ version : ' 3.8'
2+
3+ services :
4+ github-stats :
5+ image : jumongweb/github-stats:latest
6+ environment :
7+ - SPRING_DATASOURCE_URL=${DB_URL}
8+ - SPRING_DATASOURCE_USERNAME=${DB_USERNAME}
9+ - SPRING_DATASOURCE_PASSWORD=${DB_PASSWORD}
10+ depends_on :
11+ db :
12+ condition : service_healthy
13+ ports :
14+ - " 2050:2050"
15+
16+ db :
17+ image : postgres:alpine
18+ environment :
19+ - POSTGRES_USER=${POSTGRES_USER}
20+ - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
21+ - POSTGRES_DB=${POSTGRES_DB}
22+ healthcheck :
23+ test : ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
24+ interval : 5s
25+ timeout : 5s
26+ retries : 5
27+ volumes :
28+ - db_data:/var/lib/postgresql/data
29+
30+ volumes :
31+ db_data:
Original file line number Diff line number Diff line change 3434 <groupId >org.springframework.boot</groupId >
3535 <artifactId >spring-boot-starter-data-jpa</artifactId >
3636 </dependency >
37- <dependency >
38- <groupId >org.springframework.boot</groupId >
39- <artifactId >spring-boot-starter-security</artifactId >
40- </dependency >
41- <dependency >
42- <groupId >org.springframework.boot</groupId >
43- <artifactId >spring-boot-starter-validation</artifactId >
44- </dependency >
37+ <!-- <dependency> -- >
38+ <!-- <groupId>org.springframework.boot</groupId> -- >
39+ <!-- <artifactId>spring-boot-starter-security</artifactId> -- >
40+ <!-- </dependency> -- >
41+ <!-- <dependency> -- >
42+ <!-- <groupId>org.springframework.boot</groupId> -- >
43+ <!-- <artifactId>spring-boot-starter-validation</artifactId> -- >
44+ <!-- </dependency> -- >
4545 <dependency >
4646 <groupId >org.springframework.boot</groupId >
4747 <artifactId >spring-boot-starter-web</artifactId >
6464 <artifactId >spring-boot-starter-test</artifactId >
6565 <scope >test</scope >
6666 </dependency >
67- <dependency >
68- <groupId >org.springframework.security</groupId >
69- <artifactId >spring-security-test</artifactId >
70- <scope >test</scope >
71- </dependency >
67+ <!-- <dependency> -- >
68+ <!-- <groupId>org.springframework.security</groupId> -- >
69+ <!-- <artifactId>spring-security-test</artifactId> -- >
70+ <!-- <scope>test</scope> -- >
71+ <!-- </dependency> -- >
7272<!-- <dependency>-->
7373<!-- <groupId>io.jsonwebtoken</groupId>-->
7474<!-- <artifactId>jjwt-impl</artifactId>-->
Original file line number Diff line number Diff line change 11package com .jumongweb .GithubStats .data .model ;
22
33import jakarta .persistence .*;
4- import jakarta .validation .constraints .Email ;
4+ // import jakarta.validation.constraints.Email;
55import lombok .Data ;
66
77@ Entity
Original file line number Diff line number Diff line change 1- spring.datasource.username =${DB_USERNAME}
2- spring.datasource.password =${DB_PASSWORD}
3- spring.datasource.url =${DB_URL}
4- # spring.datasource.username=postgres
5- # spring.datasource.password=Lt*08161554409
6- # spring.datasource.url=jdbc:postgresql://localhost:5432/github-stats
1+ # spring.datasource.username=${DB_USERNAME}
2+ # spring.datasource.password=${DB_PASSWORD}
3+ # spring.datasource.url=${DB_URL}
4+ spring.datasource.username =postgres
5+ spring.datasource.password =Lt*08161554409
6+ spring.datasource.url =jdbc:postgresql://localhost:5432/github-stats
77server.port =2050
88spring.jpa.hibernate.ddl-auto =update
99spring.jpa.properties.hibernate.dialect =org.hibernate.dialect.PostgreSQLDialect
You can’t perform that action at this time.
0 commit comments