增加Dockerfile

This commit is contained in:
wanggeng888 2021-05-29 16:46:12 +08:00
parent c67b6a3df3
commit 25d7d1668b
3 changed files with 6 additions and 2 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM openjdk:8u292-jre-buster
ARG JAR_FILE=/target/*.jar
COPY ${JAR_FILE} wg-gateway.jar
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=prod","/wg-gateway.jar"]

View File

@ -1,5 +1,5 @@
server: server:
port: 9999 port: 8888
spring: spring:
cloud: cloud:
gateway: gateway:

View File

@ -10,7 +10,7 @@ spring:
use-insecure-trust-manager: true use-insecure-trust-manager: true
data: data:
mongodb: mongodb:
uri: mongodb://127.0.0.1:27017/gateway uri: mongodb://mongo:27017/gateway
logging: logging:
level: level: