NCP-1 add docker-compose.yaml,dockerfile and application.yaml
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
FROM mcr.microsoft.com/openjdk/jdk:17.0.13-ubuntu
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY build/libs/app.jar /app/app.jar
|
||||
|
||||
ENV SERVER_PORT=8080
|
||||
ENV DB_HOST=mysql
|
||||
ENV DB_PORT=3306
|
||||
ENV DB_NAME=no-copy-db
|
||||
ENV DB_USERNAME=mysql_user
|
||||
ENV DB_PASSWORD=mysql_pass
|
||||
ENV REDIS_HOST=redis
|
||||
ENV REDIS_PORT=6379
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
|
||||
Reference in New Issue
Block a user