diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..f617dec --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,27 @@ +version: "3" +services: + db: + container_name: ${{ secrets.CONTAINER_NAME }} + image: eunchaev1006/hhive:latest + ports: + - 1521:1521 + - 8080:80 + environment: + H2_OPTIONS: -ifNotExists + volumes: + - ./h2/:/opt/h2-data + restart: always + app: + build: + context: . + dockerfile: Dockerfile + container_name: ${{ secrets.CONTAINER_NAME }} + ports: + - 5000:8080 + environment: + SPRING_DATASOURCE_URL: jdbc:h2:tcp://${{ secrets.CONTAINER_NAME }}/~/hhive + SPRING_DATASOURCE_USERNAME: ${{ secrets.PROD_DB_USER }} + SPRING_DATASOURCE_PASSWORD: ${{ secrets.PROD_DB_PASSWORD }}# h2 db password + SPRING_JPA_HIBERNATE_DDL_AUTO: create + depends_on: + - db \ No newline at end of file diff --git a/src/main/java/com/HHive/hhive/domain/user/entity/User.java b/src/main/java/com/HHive/hhive/domain/user/entity/User.java index df9e888..b9bf4e7 100644 --- a/src/main/java/com/HHive/hhive/domain/user/entity/User.java +++ b/src/main/java/com/HHive/hhive/domain/user/entity/User.java @@ -11,6 +11,7 @@ @Entity @Getter +@Table(name = "\"USER\"") @NoArgsConstructor(access = AccessLevel.PROTECTED) public class User extends BaseTimeEntity {