Skip to content
Snippets Groups Projects
Commit 8a9dbf5d authored by Martin Weise's avatar Martin Weise
Browse files

structure now according to mavens standard

parent e87cc5ef
Branches
Tags
3 merge requests!23Sprint results,!10Revert bdb79ac5,!9Resolve "Refactoring: Backend Endpoints"
Showing
with 77 additions and 6 deletions
version: "3.6" version: "3.6"
volumes:
fda-metadata-db-data:
services: services:
fda-metadata-db:
restart: always
container_name: fda-metadata-db
hostname: fda-metadata-db
image: postgres:13-alpine
volumes:
- fda-metadata-db-data:/var/lib/postgresql/data
network_mode: bridge
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: fda
fda-discovery-server: fda-discovery-server:
restart: always
container_name: fda-discovery-server container_name: fda-discovery-server
hostname: fda-discovery-server hostname: fda-discovery-server
build: ./fda-discovery-server build: ./fda-discovery-server
...@@ -14,6 +35,7 @@ services: ...@@ -14,6 +35,7 @@ services:
- 9090:9090 - 9090:9090
fda-gateway-service: fda-gateway-service:
restart: always
container_name: fda-gateway-service container_name: fda-gateway-service
hostname: fda-gateway-service hostname: fda-gateway-service
build: ./fda-gateway-service build: ./fda-gateway-service
...@@ -39,6 +61,7 @@ services: ...@@ -39,6 +61,7 @@ services:
driver: json-file driver: json-file
fda-database-managing-service: fda-database-managing-service:
restart: always
container_name: fda-database-managing-service container_name: fda-database-managing-service
hostname: fda-database-managing-service hostname: fda-database-managing-service
build: build:
...@@ -59,6 +82,7 @@ services: ...@@ -59,6 +82,7 @@ services:
driver: json-file driver: json-file
fda-container-managing-service: fda-container-managing-service:
restart: always
container_name: fda-container-managing-service container_name: fda-container-managing-service
hostname: fda-container-managing-service hostname: fda-container-managing-service
build: ./fda-container-managing-service build: ./fda-container-managing-service
...@@ -78,6 +102,7 @@ services: ...@@ -78,6 +102,7 @@ services:
driver: json-file driver: json-file
fda-query-service: fda-query-service:
restart: always
container_name: fda-query-service container_name: fda-query-service
hostname: fda-query-service hostname: fda-query-service
build: ./fda-query-service build: ./fda-query-service
...@@ -99,6 +124,7 @@ services: ...@@ -99,6 +124,7 @@ services:
driver: json-file driver: json-file
fda-table-service: fda-table-service:
restart: always
container_name: fda-table-service container_name: fda-table-service
hostname: fda-table-service hostname: fda-table-service
build: ./fda-table-service build: ./fda-table-service
...@@ -119,6 +145,7 @@ services: ...@@ -119,6 +145,7 @@ services:
- fda-discovery-server - fda-discovery-server
fda-analyse-service: fda-analyse-service:
restart: always
container_name: fda-analyse-service container_name: fda-analyse-service
hostname: fda-analyse-service hostname: fda-analyse-service
build: ./fda-analyse-service build: ./fda-analyse-service
...@@ -143,6 +170,7 @@ services: ...@@ -143,6 +170,7 @@ services:
driver: json-file driver: json-file
fda-ui: fda-ui:
restart: always
container_name: fda-ui container_name: fda-ui
hostname: fda-ui hostname: fda-ui
build: ./fda-ui build: ./fda-ui
......
...@@ -6,7 +6,7 @@ COPY ./pom.xml ./ ...@@ -6,7 +6,7 @@ COPY ./pom.xml ./
RUN mvn -fn -B dependency:go-offline > /dev/null RUN mvn -fn -B dependency:go-offline > /dev/null
COPY src/main/java/api ./api COPY api/src/main/java/api ./api
COPY src/main/java/rest ./rest-service COPY src/main/java/rest ./rest-service
COPY src/main/java/services ./services COPY src/main/java/services ./services
......
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>at.tuwien</groupId>
<artifactId>fda-container-managing-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>api</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</project>
\ No newline at end of file
...@@ -38,6 +38,11 @@ ...@@ -38,6 +38,11 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId> <artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
......
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>at.tuwien</groupId>
<artifactId>fda-container-managing-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>rest-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</project>
\ No newline at end of file
package rest;
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.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2; import springfox.documentation.swagger2.annotations.EnableSwagger2;
@SpringBootApplication @SpringBootApplication
@ComponentScan(basePackages = "services.entities") @ComponentScan(basePackages = "entities")
@EnableSwagger2 @EnableSwagger2
public class FdaContainerManagingApplication { public class FdaContainerManagingApplication {
......
package rest.config; package config;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
......
package rest.endpoints; package endpoints;
import api.dto.container.ContainerActionTypeDto; import api.dto.container.ContainerActionTypeDto;
import api.dto.container.DatabaseContainerBriefDto; import api.dto.container.DatabaseContainerBriefDto;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment