Commit 23f1b163 authored by Ben Anderson's avatar Ben Anderson

Updated deployment file

parent 45ceb9e3
FROM openjdk:11-jre-slim
COPY target/promotions-0.0.1-SNAPSHOT.jar /usr/local/lib/promotions.jar
EXPOSE 8081
EXPOSE 8080
ENTRYPOINT ["java","-jar","/usr/local/lib/promotions.jar"]
# For local testing, comment the top part out and uncomment the bottom
......
......@@ -20,7 +20,7 @@ spec:
- containerPort: 8082
env:
- name: PORT
value: "8081"
value: "8080"
- name: MONGOCONNECTION
valueFrom:
secretKeyRef:
......
server.port=8081
server.port=8080
spring.data.mongodb.uri=${MONGOCONNECTION}
spring.data.mongodb.database=products-promotions-DB
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment