增加开发环境和生产环境的配置

This commit is contained in:
燕陇琪 2024-12-28 19:01:06 +08:00
parent 6ddda86621
commit 0fc112989a
4 changed files with 37 additions and 6 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM docker.yuchat.top/openjdk:21-jdk
MAINTAINER yuchat@163.com
ADD target/*.jar /usr/local/app.jar
EXPOSE 8080
CMD java -jar -Xms50m -Xmx1G /usr/local/app.jar --spring.profiles.active=prod

View File

@ -0,0 +1,11 @@
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://pgsql.yuchat.top:5432/postgres
username: postgres
password: longqi@1314
top:
yuchat:
download:
path: F:\videos

View File

@ -0,0 +1,11 @@
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://pgsql.yuchat.top:5432/postgres
username: postgres
password: longqi@1314
top:
yuchat:
download:
path: F:\videos

View File

@ -1,9 +1,9 @@
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://pgsql.yuchat.top:5432/postgres
username: postgres
password: longqi@1314
minio:
endpoint: http://minio.yuchat:9000
access-key: CGG6QZHvKI0JEuXM5gBJ
secret-key: QXosu8wFLEjVMTdQ63mxmdYVJ1SFwbsGarXtkJxR
bucket: yuchat-home
top:
yuchat: