Skip to content

Commit 304d3de

Browse files
committed
fix docker config
1 parent 3e9ad41 commit 304d3de

File tree

4 files changed

+4
-42
lines changed

4 files changed

+4
-42
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
FROM openjdk:8-jdk-alpine
22
VOLUME /tmp
33
EXPOSE 8080
4-
ARG JAR_FILE
5-
COPY ${JAR_FILE} app.jar
4+
ADD build/libs/live-streaming-0.0.1-SNAPSHOT.jar app.jar
65
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

docker-compose.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/main/resources/application.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#MySQL data source properties
2-
spring.datasource.url=jdbc:mysql://localhost/live-streaming?useUnicode=true&characterEncoding=UTF-8&useSSL=false
3-
spring.datasource.username=root
4-
spring.datasource.password=
2+
spring.datasource.url=jdbc:mysql://${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}?useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true
3+
spring.datasource.username=${DATABASE_USER}
4+
spring.datasource.password=${DATABASE_PASSWORD}
55
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
66
spring.jpa.generate-ddl=true
77

src/test/java/com/streaming/ApplicationTests.java

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)