Skip to content
Snippets Groups Projects
Commit 129557ae authored by Thomas's avatar Thomas
Browse files

Convert dataStore to FS

parent 34d98e30
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ services: ...@@ -13,7 +13,7 @@ services:
- MYSQL_USER=mozen_user - MYSQL_USER=mozen_user
- MYSQL_PASSWORD=1234 - MYSQL_PASSWORD=1234
volumes: volumes:
- /data/mozen_db_data:/config - /data/mozen_data/db:/config
restart: unless-stopped restart: unless-stopped
mozen_web: mozen_web:
...@@ -23,4 +23,6 @@ services: ...@@ -23,4 +23,6 @@ services:
container_name: mozen_web container_name: mozen_web
ports: ports:
- 8007:8181 - 8007:8181
volumes:
- /data/mozen_data/store:/home/data
restart: unless-stopped restart: unless-stopped
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.paulcwarren</groupId> <groupId>com.github.paulcwarren</groupId>
<artifactId>spring-content-jpa-boot-starter</artifactId> <artifactId>spring-content-fs-boot-starter</artifactId>
<version>1.0.0.M10</version> <version>1.0.0.M10</version>
</dependency> </dependency>
......
...@@ -3,7 +3,7 @@ package mozen; ...@@ -3,7 +3,7 @@ package mozen;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.content.jpa.config.EnableJpaStores; import org.springframework.content.fs.config.EnableFilesystemStores;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource; import org.springframework.context.annotation.PropertySource;
...@@ -15,7 +15,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -15,7 +15,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableJpaRepositories(basePackageClasses = MozenApplication.class) @EnableJpaRepositories(basePackageClasses = MozenApplication.class)
@EntityScan(basePackages = "mozen.model") @EntityScan(basePackages = "mozen.model")
@ComponentScan(basePackages = "mozen") @ComponentScan(basePackages = "mozen")
@EnableJpaStores @EnableFilesystemStores
@EnableTransactionManagement @EnableTransactionManagement
@PropertySource("classpath:application.properties") @PropertySource("classpath:application.properties")
public class MozenApplication { public class MozenApplication {
......
...@@ -32,3 +32,5 @@ spring.servlet.multipart.max-file-size=10GB ...@@ -32,3 +32,5 @@ spring.servlet.multipart.max-file-size=10GB
spring.servlet.multipart.max-request-size=10GB spring.servlet.multipart.max-request-size=10GB
spring.jackson.serialization.fail-on-empty-beans=false spring.jackson.serialization.fail-on-empty-beans=false
spring.content.fs.filesystem-root=data
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment