Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script: 도커 컴포즈 추가 #46

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions src/main/java/com/HHive/hhive/domain/user/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@Entity
@Getter
@Table(name = "\"USER\"")
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class User extends BaseTimeEntity {

Expand Down
Loading