NCP-1 add docker-compose.yaml,dockerfile and application.yaml

This commit is contained in:
vladp
2025-11-23 23:25:58 +07:00
parent 70651031be
commit 2b11f55bab
3 changed files with 88 additions and 3 deletions
+18
View File
@@ -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"]