Skip to content

Commit

Permalink
Merge pull request #79 from PUDDY-sp/main
Browse files Browse the repository at this point in the history
feat : 배포 완료
  • Loading branch information
minwoo0419 authored Feb 10, 2024
2 parents 6dd4568 + 3842f11 commit db691fa
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
20 changes: 20 additions & 0 deletions Docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3"
services:
redis:
platform: linux/amd64
container_name: puddy-cache
hostname: redis
image: minwcho/puddy-cache:0.0.1
ports:
- "6379:6379"
puddy:
image: minwcho/puddy-backend:0.0.1
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
container_name: puddy-backend
ports:
- "8080:8080"
depends_on:
- redis
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM openjdk:17
COPY /build/libs/puddy-0.0.1-SNAPSHOT.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar", "--spring.profiles.active=prod"]
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.mysql:mysql-connector-j'
runtimeOnly 'com.mysql:mysql-connector-j:8.0.33'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
Expand Down
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
chmod +x ./gradlew
./gradlew build
2 changes: 2 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker compose build
docker compose push
3 changes: 2 additions & 1 deletion src/main/java/sideproject/puddy/model/Match.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

@Entity
@Getter
@Table(name = "matching")
@NoArgsConstructor(access= AccessLevel.PROTECTED)
public class Match {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@ManyToOne
@JoinColumn(name = "sender_id")
Expand Down

0 comments on commit db691fa

Please sign in to comment.