git clone https://github.com/farm-6/HEC-AI.git
spring:
config:
import:
- app.yml
datasource:
url: jdbc:mysql://database:3306/{your database name}?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: {your password}
jpa:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
ddl-auto: update
properties:
hibernate:
format_sql: true
logging:
level:
farm: info
app:
jwt:
password: { social login password }
secret: { jwt secret key }
accessToken:
expiration: 3600
refreshToken:
expiration: 86400
sudo vim .env.db
MYSQL_HOST=localhost {your host}
MYSQL_PORT=3306
MYSQL_ROOT_PASSWORD={your password}
MYSQL_USER={your user name}
MYSQL_PASSWORD={your password}
MYSQL_DATABASE={your database name}
sudo docker-compose up --build -d