File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
2
3
- FROM openjdk:8-jdk-alpine
3
+ FROM openjdk:11.0.13-jre-buster
4
4
ARG JAR_FILE=target/BootForum-*.war
5
5
COPY ${JAR_FILE} BootForum.war
6
6
ENTRYPOINT ["java" ,"-jar" ,"/BootForum.war" ]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: '2'
3
3
services :
4
4
app :
5
5
image : ' ch3nguyen/bootforum:latest'
6
- container_name : app
6
+ container_name : bootforum
7
7
depends_on :
8
8
db :
9
9
condition : service_healthy
@@ -13,14 +13,19 @@ services:
13
13
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/BootForum
14
14
- SPRING_DATASOURCE_USERNAME=BootForum
15
15
- SPRING_DATASOURCE_PASSWORD=secret
16
+ - File.uploadDirectory=/var/BootForum/files
17
+ - Lucene.indexDirectory=/var/BootForum/index
16
18
ports :
17
19
- 8080:8080
18
20
volumes :
19
- - ./bootforum/files:/tmp/BootForum/files
21
+ # map the host's current-directory/BootForum to app's BootForum/files & BootForum/index
22
+ - ./BootForum/files:/var/BootForum/files
23
+ - ./BootForum/index:/var/BootForum/index
20
24
db :
21
25
container_name : postgres
22
26
image : ' postgres:13.1-alpine'
23
27
volumes :
28
+ # map the host's current-directory/postresql/data to postgresql's data
24
29
- ./postgresql/data:/var/lib/postgresql/data
25
30
environment :
26
31
- POSTGRES_USER=BootForum
You can’t perform that action at this time.
0 commit comments