moved the location of the files in the docker

This commit is contained in:
Rostislav Raykov
2024-10-09 00:14:08 +03:00
parent d23e25b18a
commit ba97add4a2
5 changed files with 12 additions and 4 deletions
+3
View File
@@ -31,3 +31,6 @@ build/
### VS Code ###
.vscode/
/db/
/log/
/files/
Vendored
+1 -1
View File
@@ -49,7 +49,7 @@ pipeline {
-p 8083:8080 \
-v /var/lib/quickdrop/db:/app/db \
-v /var/log/quickdrop:/app/log \
-v /srv/quickdrop/files:/files \
-v /srv/quickdrop/files:/app/files \
${DOCKER_IMAGE}
"""
}
+4 -3
View File
@@ -1,7 +1,8 @@
spring.profiles.active=default
spring.application.name=quickdrop
spring.datasource.driver-class-name=org.sqlite.JDBC
spring.jpa.database-platform=org.hibernate.community.dialect.SQLiteDialect
spring.datasource.url=jdbc:sqlite:/db/quickdrop.db
spring.datasource.url=jdbc:sqlite:db/quickdrop.db
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.thymeleaf.prefix=classpath:/templates/
@@ -10,9 +11,9 @@ spring.thymeleaf.cache=false
spring.servlet.multipart.max-file-size=1024MB
spring.servlet.multipart.max-request-size=1024MB
server.tomcat.connection-timeout=60000
file.save.path=/files
file.save.path=files
file.max.age=30
logging.file.path=/log
logging.file.path=log
logging.file.name=quickdrop.log
file.deletion.cron=0 0 2 * * *
#logging.level.org.springframework=DEBUG
@@ -2,8 +2,10 @@ package org.rostislav.quickdrop;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
@SpringBootTest
@ActiveProfiles("test")
class QuickdropApplicationTests {
@Test
@@ -0,0 +1,2 @@
logging.file.path=
spring.datasource.url=jdbc:sqlite:quickdrop.db