4
config-service/Dockerfile
Normal file
4
config-service/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM openjdk:11
|
||||
VOLUME /tmp/Users/sangbum/Desktop/git-repository/just-pickup/docker-compose.yml
|
||||
COPY build/libs/config-service-1.0.jar ConfigService.jar
|
||||
ENTRYPOINT ["java", "-jar", "ConfigService.jar"]
|
||||
@@ -5,7 +5,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'com.just-pickup'
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
version = '1.0'
|
||||
sourceCompatibility = '11'
|
||||
|
||||
repositories {
|
||||
|
||||
4
customer-apigateway-service/Dockerfile
Normal file
4
customer-apigateway-service/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM openjdk:11
|
||||
VOLUME /tmp
|
||||
COPY build/libs/customer-apigateway-service-1.0.jar CustomerApiGatewayService.jar
|
||||
ENTRYPOINT ["java", "-jar", "CustomerApiGatewayService.jar"]
|
||||
@@ -5,7 +5,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'com.just-pickup'
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
version = '1.0'
|
||||
sourceCompatibility = '11'
|
||||
|
||||
configurations {
|
||||
|
||||
4
discovery-service/Dockerfile
Normal file
4
discovery-service/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM openjdk:11
|
||||
VOLUME /tmp
|
||||
COPY build/libs/discovery-service-1.0.jar DiscoveryService.jar
|
||||
ENTRYPOINT ["java", "-jar", "DiscoveryService.jar"]
|
||||
@@ -5,7 +5,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'com.just-pickup'
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
version = '1.0'
|
||||
sourceCompatibility = '11'
|
||||
|
||||
repositories {
|
||||
|
||||
175
docker-compose.yml
Normal file
175
docker-compose.yml
Normal file
@@ -0,0 +1,175 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
zookeeper:
|
||||
image: wurstmeister/zookeeper
|
||||
ports:
|
||||
- "2181:2181"
|
||||
networks:
|
||||
justpickup-network:
|
||||
ipv4_address: 172.18.0.100
|
||||
kafka:
|
||||
image: wurstmeister/kafka:2.12-2.3.0
|
||||
ports:
|
||||
- "9092:9092"
|
||||
environment:
|
||||
KAFKA_ADVERTISED_HOST_NAME: 172.18.0.101
|
||||
KAFKA_CREATE_TOPICS: "test:1:1"
|
||||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
depends_on:
|
||||
- zookeeper
|
||||
networks:
|
||||
- justpickup-network
|
||||
|
||||
discovery:
|
||||
container_name: discovery
|
||||
build:
|
||||
context: ./discovery-service/
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 8761:8761
|
||||
networks:
|
||||
- justpickup-network
|
||||
|
||||
owner-gateway:
|
||||
container_name: owner-gateway
|
||||
build:
|
||||
context: ./owner-apigateway-service/
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 8001:8001
|
||||
networks:
|
||||
- justpickup-network
|
||||
environment:
|
||||
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
|
||||
depends_on:
|
||||
- discovery
|
||||
|
||||
customer-gateway:
|
||||
container_name: customer-gateway
|
||||
build:
|
||||
context: ./customer-apigateway-service/
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 8000:8000
|
||||
networks:
|
||||
- justpickup-network
|
||||
environment:
|
||||
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
|
||||
depends_on:
|
||||
- discovery
|
||||
|
||||
config:
|
||||
container_name: config
|
||||
build:
|
||||
context: ./config-service/
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 8888:8888
|
||||
networks:
|
||||
- justpickup-network
|
||||
|
||||
postgres-db:
|
||||
container_name: postgres
|
||||
build:
|
||||
context: ./postgres_data/
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 5432:5432
|
||||
networks:
|
||||
- justpickup-network
|
||||
|
||||
redis:
|
||||
container_name: redis
|
||||
image: redis:alpine
|
||||
command: redis-server --port 6379
|
||||
hostname: redis_boot
|
||||
labels:
|
||||
- "name=redis"
|
||||
- "mode=standalone"
|
||||
ports:
|
||||
- 6379:6379
|
||||
networks:
|
||||
- justpickup-network
|
||||
|
||||
user-service:
|
||||
container_name: user
|
||||
build:
|
||||
context: ./user-service/
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
|
||||
- spring.config.import=optional:configserver:http://config:8888
|
||||
- spring.datasource.url=jdbc:postgresql://postgres:5432/userdb
|
||||
- spring.redis.host=redis
|
||||
depends_on:
|
||||
- discovery
|
||||
- config
|
||||
- postgres-db
|
||||
- redis
|
||||
restart: always
|
||||
networks:
|
||||
- justpickup-network
|
||||
|
||||
order-service:
|
||||
container_name: order
|
||||
build:
|
||||
context: ./order-service/
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
|
||||
- spring.datasource.url=jdbc:postgresql://postgres:5432/orderdb
|
||||
- kafka.host=172.18.0.101
|
||||
- kafka.port=9092
|
||||
depends_on:
|
||||
- discovery
|
||||
- config
|
||||
- postgres-db
|
||||
- kafka
|
||||
restart: always
|
||||
networks:
|
||||
- justpickup-network
|
||||
|
||||
store-service:
|
||||
container_name: store
|
||||
build:
|
||||
context: ./store-service/
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
|
||||
- spring.datasource.url=jdbc:postgresql://postgres:5432/storedb
|
||||
depends_on:
|
||||
- discovery
|
||||
- config
|
||||
- postgres-db
|
||||
restart: always
|
||||
networks:
|
||||
- justpickup-network
|
||||
|
||||
notification-service:
|
||||
container_name: notification
|
||||
build:
|
||||
context: ./notification-service/
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
|
||||
- spring.datasource.url=jdbc:postgresql://postgres:5432/notificationdb
|
||||
depends_on:
|
||||
- discovery
|
||||
- config
|
||||
- postgres-db
|
||||
restart: always
|
||||
networks:
|
||||
- justpickup-network
|
||||
|
||||
networks:
|
||||
justpickup-network:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.18.0.0/16
|
||||
gateway: 172.18.0.1
|
||||
|
||||
|
||||
4
notification-service/Dockerfile
Normal file
4
notification-service/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM openjdk:11
|
||||
VOLUME /tmp
|
||||
COPY build/libs/notification-service-1.0.jar NotificationService.jar
|
||||
ENTRYPOINT ["java", "-jar", "NotificationService.jar"]
|
||||
@@ -6,7 +6,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'com.just-pickup'
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
version = '1.0'
|
||||
sourceCompatibility = '11'
|
||||
|
||||
configurations {
|
||||
|
||||
4
order-service/Dockerfile
Normal file
4
order-service/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM openjdk:11
|
||||
VOLUME /tmp
|
||||
COPY build/libs/order-service-1.0.jar OrderService.jar
|
||||
ENTRYPOINT ["java", "-jar", "OrderService.jar"]
|
||||
@@ -6,7 +6,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'com.just-pickup'
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
version = '1.0'
|
||||
sourceCompatibility = '11'
|
||||
configurations {
|
||||
compileOnly {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
server:
|
||||
port: 54329
|
||||
port: 0
|
||||
|
||||
spring:
|
||||
application:
|
||||
|
||||
4
owner-apigateway-service/Dockerfile
Normal file
4
owner-apigateway-service/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM openjdk:11
|
||||
VOLUME /tmp
|
||||
COPY build/libs/owner-apigateway-service-1.0.jar OwnerApiGatewayService.jar
|
||||
ENTRYPOINT ["java", "-jar", "OwnerApiGatewayService.jar"]
|
||||
@@ -5,7 +5,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'com.just-pickup'
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
version = '1.0'
|
||||
sourceCompatibility = '11'
|
||||
|
||||
configurations {
|
||||
|
||||
5
postgres_data/Dockerfile
Normal file
5
postgres_data/Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM postgres
|
||||
ENV POSTGRES_PASSWORD=admin
|
||||
VOLUME ["/etc/postgresql", "/var/log/postgresql", "var/lib/postgresql"]
|
||||
COPY ./var-14/ /var/lib/postgresql/data
|
||||
EXPOSE 5432
|
||||
1
postgres_data/var-14/PG_VERSION
Normal file
1
postgres_data/var-14/PG_VERSION
Normal file
@@ -0,0 +1 @@
|
||||
14
|
||||
BIN
postgres_data/var-14/base/1/112
Normal file
BIN
postgres_data/var-14/base/1/112
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/113
Normal file
BIN
postgres_data/var-14/base/1/113
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1247
Normal file
BIN
postgres_data/var-14/base/1/1247
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1247_fsm
Normal file
BIN
postgres_data/var-14/base/1/1247_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1247_vm
Normal file
BIN
postgres_data/var-14/base/1/1247_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1249
Normal file
BIN
postgres_data/var-14/base/1/1249
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1249_fsm
Normal file
BIN
postgres_data/var-14/base/1/1249_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1249_vm
Normal file
BIN
postgres_data/var-14/base/1/1249_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1255
Normal file
BIN
postgres_data/var-14/base/1/1255
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1255_fsm
Normal file
BIN
postgres_data/var-14/base/1/1255_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1255_vm
Normal file
BIN
postgres_data/var-14/base/1/1255_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1259
Normal file
BIN
postgres_data/var-14/base/1/1259
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1259_fsm
Normal file
BIN
postgres_data/var-14/base/1/1259_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/1259_vm
Normal file
BIN
postgres_data/var-14/base/1/1259_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13839
Normal file
BIN
postgres_data/var-14/base/1/13839
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13839_fsm
Normal file
BIN
postgres_data/var-14/base/1/13839_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13839_vm
Normal file
BIN
postgres_data/var-14/base/1/13839_vm
Normal file
Binary file not shown.
0
postgres_data/var-14/base/1/13842
Normal file
0
postgres_data/var-14/base/1/13842
Normal file
BIN
postgres_data/var-14/base/1/13843
Normal file
BIN
postgres_data/var-14/base/1/13843
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13844
Normal file
BIN
postgres_data/var-14/base/1/13844
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13844_fsm
Normal file
BIN
postgres_data/var-14/base/1/13844_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13844_vm
Normal file
BIN
postgres_data/var-14/base/1/13844_vm
Normal file
Binary file not shown.
0
postgres_data/var-14/base/1/13847
Normal file
0
postgres_data/var-14/base/1/13847
Normal file
BIN
postgres_data/var-14/base/1/13848
Normal file
BIN
postgres_data/var-14/base/1/13848
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13849
Normal file
BIN
postgres_data/var-14/base/1/13849
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13849_fsm
Normal file
BIN
postgres_data/var-14/base/1/13849_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13849_vm
Normal file
BIN
postgres_data/var-14/base/1/13849_vm
Normal file
Binary file not shown.
0
postgres_data/var-14/base/1/13852
Normal file
0
postgres_data/var-14/base/1/13852
Normal file
BIN
postgres_data/var-14/base/1/13853
Normal file
BIN
postgres_data/var-14/base/1/13853
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13854
Normal file
BIN
postgres_data/var-14/base/1/13854
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13854_fsm
Normal file
BIN
postgres_data/var-14/base/1/13854_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/13854_vm
Normal file
BIN
postgres_data/var-14/base/1/13854_vm
Normal file
Binary file not shown.
0
postgres_data/var-14/base/1/13857
Normal file
0
postgres_data/var-14/base/1/13857
Normal file
BIN
postgres_data/var-14/base/1/13858
Normal file
BIN
postgres_data/var-14/base/1/13858
Normal file
Binary file not shown.
0
postgres_data/var-14/base/1/1417
Normal file
0
postgres_data/var-14/base/1/1417
Normal file
0
postgres_data/var-14/base/1/1418
Normal file
0
postgres_data/var-14/base/1/1418
Normal file
BIN
postgres_data/var-14/base/1/174
Normal file
BIN
postgres_data/var-14/base/1/174
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/175
Normal file
BIN
postgres_data/var-14/base/1/175
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2187
Normal file
BIN
postgres_data/var-14/base/1/2187
Normal file
Binary file not shown.
0
postgres_data/var-14/base/1/2224
Normal file
0
postgres_data/var-14/base/1/2224
Normal file
BIN
postgres_data/var-14/base/1/2228
Normal file
BIN
postgres_data/var-14/base/1/2228
Normal file
Binary file not shown.
0
postgres_data/var-14/base/1/2328
Normal file
0
postgres_data/var-14/base/1/2328
Normal file
0
postgres_data/var-14/base/1/2336
Normal file
0
postgres_data/var-14/base/1/2336
Normal file
BIN
postgres_data/var-14/base/1/2337
Normal file
BIN
postgres_data/var-14/base/1/2337
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2579
Normal file
BIN
postgres_data/var-14/base/1/2579
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2600
Normal file
BIN
postgres_data/var-14/base/1/2600
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2600_fsm
Normal file
BIN
postgres_data/var-14/base/1/2600_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2600_vm
Normal file
BIN
postgres_data/var-14/base/1/2600_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2601
Normal file
BIN
postgres_data/var-14/base/1/2601
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2601_fsm
Normal file
BIN
postgres_data/var-14/base/1/2601_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2601_vm
Normal file
BIN
postgres_data/var-14/base/1/2601_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2602
Normal file
BIN
postgres_data/var-14/base/1/2602
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2602_fsm
Normal file
BIN
postgres_data/var-14/base/1/2602_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2602_vm
Normal file
BIN
postgres_data/var-14/base/1/2602_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2603
Normal file
BIN
postgres_data/var-14/base/1/2603
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2603_fsm
Normal file
BIN
postgres_data/var-14/base/1/2603_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2603_vm
Normal file
BIN
postgres_data/var-14/base/1/2603_vm
Normal file
Binary file not shown.
0
postgres_data/var-14/base/1/2604
Normal file
0
postgres_data/var-14/base/1/2604
Normal file
BIN
postgres_data/var-14/base/1/2605
Normal file
BIN
postgres_data/var-14/base/1/2605
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2605_fsm
Normal file
BIN
postgres_data/var-14/base/1/2605_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2605_vm
Normal file
BIN
postgres_data/var-14/base/1/2605_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2606
Normal file
BIN
postgres_data/var-14/base/1/2606
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2606_fsm
Normal file
BIN
postgres_data/var-14/base/1/2606_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2606_vm
Normal file
BIN
postgres_data/var-14/base/1/2606_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2607
Normal file
BIN
postgres_data/var-14/base/1/2607
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2607_fsm
Normal file
BIN
postgres_data/var-14/base/1/2607_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2607_vm
Normal file
BIN
postgres_data/var-14/base/1/2607_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2608
Normal file
BIN
postgres_data/var-14/base/1/2608
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2608_fsm
Normal file
BIN
postgres_data/var-14/base/1/2608_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2608_vm
Normal file
BIN
postgres_data/var-14/base/1/2608_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2609
Normal file
BIN
postgres_data/var-14/base/1/2609
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2609_fsm
Normal file
BIN
postgres_data/var-14/base/1/2609_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2609_vm
Normal file
BIN
postgres_data/var-14/base/1/2609_vm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2610
Normal file
BIN
postgres_data/var-14/base/1/2610
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2610_fsm
Normal file
BIN
postgres_data/var-14/base/1/2610_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2610_vm
Normal file
BIN
postgres_data/var-14/base/1/2610_vm
Normal file
Binary file not shown.
0
postgres_data/var-14/base/1/2611
Normal file
0
postgres_data/var-14/base/1/2611
Normal file
BIN
postgres_data/var-14/base/1/2612
Normal file
BIN
postgres_data/var-14/base/1/2612
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2612_fsm
Normal file
BIN
postgres_data/var-14/base/1/2612_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2612_vm
Normal file
BIN
postgres_data/var-14/base/1/2612_vm
Normal file
Binary file not shown.
0
postgres_data/var-14/base/1/2613
Normal file
0
postgres_data/var-14/base/1/2613
Normal file
BIN
postgres_data/var-14/base/1/2615
Normal file
BIN
postgres_data/var-14/base/1/2615
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2615_fsm
Normal file
BIN
postgres_data/var-14/base/1/2615_fsm
Normal file
Binary file not shown.
BIN
postgres_data/var-14/base/1/2615_vm
Normal file
BIN
postgres_data/var-14/base/1/2615_vm
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user