add docker
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
redis:
|
||||||
|
image: redis:7
|
||||||
|
ports:
|
||||||
|
- "6379:6379"
|
||||||
|
|
||||||
|
mongodb:
|
||||||
|
image: mongo:7
|
||||||
|
command: ["--replSet", "rs0"]
|
||||||
|
ports:
|
||||||
|
- "27017:27017"
|
||||||
|
|
||||||
|
user-service:
|
||||||
|
build: ./user-service
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
- mongodb
|
||||||
|
|
||||||
|
giftcode-service:
|
||||||
|
build: ./giftcode-service
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
- mongodb
|
||||||
|
|||||||
4
giftCode-service/Dockerfile
Normal file
4
giftCode-service/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM eclipse-temurin:21-jre
|
||||||
|
WORKDIR /app
|
||||||
|
COPY target/*.jar app.jar
|
||||||
|
ENTRYPOINT ["java","-jar","app.jar"]
|
||||||
4
user-service/Dockerfile
Normal file
4
user-service/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM eclipse-temurin:21-jre
|
||||||
|
WORKDIR /app
|
||||||
|
COPY target/*.jar app.jar
|
||||||
|
ENTRYPOINT ["java","-jar","app.jar"]
|
||||||
Reference in New Issue
Block a user