File tree 6 files changed +91
-11
lines changed 6 files changed +91
-11
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ COPY pom.xml /tmp/
3
3
RUN mvn -B dependency:go-offline -f /tmp/pom.xml -s /usr/share/maven/ref/settings-docker.xml
4
4
COPY src /tmp/src/
5
5
WORKDIR /tmp/
6
- RUN mvn -B -s /usr/share/maven/ref/settings-docker.xml package
6
+ RUN mvn -B -s /usr/share/maven/ref/settings-docker.xml package -DargLine= "-Dspring.profiles.active=local"
7
7
8
8
FROM java:8-jre-alpine
9
9
Original file line number Diff line number Diff line change @@ -3,7 +3,34 @@ version: '3.7'
3
3
services :
4
4
openvalidation-ide-backend :
5
5
image : openvalidation-ide-backend:latest
6
- build :
6
+ environment :
7
+ - SPRING_PROFILES_ACTIVE=dev
8
+ - OPENVALIDATION_IDE_DB=postgres
9
+ - OPENVALIDATION_IDE_DB_NAME=openvalidation_ide
10
+ - OPENVALIDATION_IDE_DB_USER=openvalidation_ide
11
+ - OPENVALIDATION_IDE_DB_PW=_OPeN_VALiDAtION_IdE
12
+ build :
7
13
context : .
14
+ depends_on :
15
+ - postgres
8
16
ports :
9
17
- ' 8080:8080'
18
+ networks :
19
+ - openvalidation_ide_backend
20
+
21
+ postgres :
22
+ image : postgres:10.1
23
+ volumes :
24
+ - openvalidation_ide_db:/var/lib/postgresql/data
25
+ environment :
26
+ - PGDATA=/var/lib/postgresql/data/pgdata
27
+ - POSTGRES_DB=openvalidation_ide
28
+ - POSTGRES_USER=openvalidation_ide
29
+ - POSTGRES_PASSWORD=_OPeN_VALiDAtION_IdE
30
+ networks :
31
+ - openvalidation_ide_backend
32
+ volumes :
33
+ openvalidation_ide_db : {}
34
+
35
+ networks :
36
+ openvalidation_ide_backend:
Original file line number Diff line number Diff line change 68
68
<scope >runtime</scope >
69
69
</dependency >
70
70
71
+ <dependency >
72
+ <groupId >org.postgresql</groupId >
73
+ <artifactId >postgresql</artifactId >
74
+ <scope >runtime</scope >
75
+ </dependency >
76
+
71
77
<dependency >
72
78
<groupId >org.springdoc</groupId >
73
79
<artifactId >springdoc-openapi-ui</artifactId >
Original file line number Diff line number Diff line change
1
+ spring :
2
+ datasource :
3
+ url : jdbc:postgresql://${OPENVALIDATION_IDE_DB}:5432/${OPENVALIDATION_IDE_DB_NAME}
4
+ username : ${OPENVALIDATION_IDE_DB_USER}
5
+ password : ${OPENVALIDATION_IDE_DB_PW}
Original file line number Diff line number Diff line change
1
+ spring :
2
+ application :
3
+ name : openvalidation-ide-backend
4
+ profiles :
5
+ active : local
6
+ # Hibernate ddl auto
7
+ jpa :
8
+ hibernate :
9
+ ddl-auto : update
10
+ properties :
11
+ hibernate :
12
+ jdbc :
13
+ lob :
14
+ non_contextual_creation : true
1
15
springdoc :
2
16
version : ' @org.springdoc.version@'
3
17
api-docs :
Original file line number Diff line number Diff line change 1
- version : ' 3.7'
1
+ version : " 3.7"
2
2
3
3
services :
4
+ openvalidation-ide-frontend :
5
+ image : openvalidation-ide-frontend:latest
6
+ build :
7
+ context : ./frontend
8
+ ports :
9
+ - " 80:80"
10
+
4
11
openvalidation-ide-backend :
5
12
image : openvalidation-ide-backend:latest
6
- build :
13
+ build :
7
14
context : ./backend
15
+ environment :
16
+ - SPRING_PROFILES_ACTIVE=dev
17
+ - OPENVALIDATION_IDE_DB=postgres
18
+ - OPENVALIDATION_IDE_DB_NAME=openvalidation_ide
19
+ - OPENVALIDATION_IDE_DB_USER=openvalidation_ide
20
+ - OPENVALIDATION_IDE_DB_PW=_OPeN_VALiDAtION_IdE
8
21
ports :
9
- - ' 8080:8080'
22
+ - " 8080:8080"
23
+ depends_on :
24
+ - postgres
25
+ networks :
26
+ - openvalidation_ide_backend
10
27
11
- openvalidation-ide-frontend :
12
- image : openvalidation-ide-frontend:latest
13
- build :
14
- context : ./frontend
15
- ports :
16
- - ' 80:80'
28
+ postgres :
29
+ image : postgres:10.1
30
+ volumes :
31
+ - openvalidation_ide_db:/var/lib/postgresql/data
32
+ environment :
33
+ - PGDATA=/var/lib/postgresql/data/pgdata
34
+ - POSTGRES_DB=openvalidation_ide
35
+ - POSTGRES_USER=openvalidation_ide
36
+ - POSTGRES_PASSWORD=_OPeN_VALiDAtION_IdE
37
+ networks :
38
+ - openvalidation_ide_backend
39
+
40
+ volumes :
41
+ openvalidation_ide_db : {}
42
+
43
+ networks :
44
+ openvalidation_ide_backend :
You can’t perform that action at this time.
0 commit comments