Compare commits
3 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
b51b6317e7 | |
|
|
ef38b66835 | |
|
|
ad8e3bc89d |
|
|
@ -41,6 +41,7 @@
|
|||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>2.3.4.RELEASE</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
docker-compose -f services.yml down && docker volume prune -f && mvn -f ../pom.xml clean
|
||||
docker-compose -f services.yml down && docker volume prune -f
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ version: '3'
|
|||
services:
|
||||
|
||||
mysql:
|
||||
image: mysql:${MYSQL_VERSION}
|
||||
image: biarms/mysql:5.7.30-linux-arm64v8
|
||||
container_name: ${MYSQL_CONTAINER_NAME}
|
||||
hostname: mysql
|
||||
environment:
|
||||
|
|
@ -41,33 +41,34 @@ services:
|
|||
|
||||
# See Also: https://hub.docker.com/r/confluentinc/cp-zookeeper
|
||||
zookeeper:
|
||||
image: confluentinc/cp-zookeeper:latest
|
||||
image: bitnami/zookeeper:latest
|
||||
container_name: ${ZOOKEEPER_CONTAINER_NAME}
|
||||
hostname: zookeeper
|
||||
environment:
|
||||
ZOOKEEPER_CLIENT_PORT: 2181
|
||||
ZOOKEEPER_TICK_TIME: 2000
|
||||
ALLOW_ANONYMOUS_LOGIN: yes
|
||||
ports:
|
||||
- ${ZOOKEEPER_LOCAL_PORT}:2181
|
||||
# volumes:
|
||||
# - ${DOCKER_DATA_PATH}/zookeeper:/var/lib/zookeeper
|
||||
volumes:
|
||||
- ${DOCKER_DATA_PATH}/zookeeper:/var/lib/zookeeper
|
||||
networks:
|
||||
- gitlink_network
|
||||
restart: always
|
||||
|
||||
# See Also: https://hub.docker.com/r/confluentinc/cp-kafka
|
||||
kafka1:
|
||||
image: confluentinc/cp-kafka:latest
|
||||
image: wurstmeister/kafka:latest
|
||||
container_name: ${KAFKA_CONTAINER_01_NAME}
|
||||
hostname: kafka1
|
||||
depends_on:
|
||||
- zookeeper
|
||||
ports:
|
||||
- ${KAFKA_01_LOCAL_PORT}:29092
|
||||
# volumes:
|
||||
# - ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_01_NAME}/lib:/var/lib/kafka
|
||||
# - ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_01_NAME}/logs:/var/logs/kafka
|
||||
# - ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_01_NAME}/conf:/etc/kafka
|
||||
#volumes:
|
||||
#- ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_01_NAME}/lib:/var/lib/kafka
|
||||
#- ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_01_NAME}/logs:/var/logs/kafka
|
||||
#- ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_01_NAME}/conf:/etc/kafka
|
||||
environment:
|
||||
KAFKA_BROKER_ID: 1
|
||||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
|
||||
|
|
@ -75,23 +76,24 @@ services:
|
|||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
|
||||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
|
||||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
||||
KAFKA_LISTENERS: PLAINTEXT://kafka1:9092,PLAINTEXT_HOST://localhost:${KAFKA_01_LOCAL_PORT}
|
||||
networks:
|
||||
- gitlink_network
|
||||
restart: always
|
||||
|
||||
# See Also: https://hub.docker.com/r/confluentinc/cp-kafka
|
||||
kafka2:
|
||||
image: confluentinc/cp-kafka:latest
|
||||
image: wurstmeister/kafka:latest
|
||||
container_name: ${KAFKA_CONTAINER_02_NAME}
|
||||
hostname: kafka2
|
||||
depends_on:
|
||||
- zookeeper
|
||||
ports:
|
||||
- ${KAFKA_02_LOCAL_PORT}:39092
|
||||
# volumes:
|
||||
# - ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_02_NAME}/lib:/var/lib/kafka
|
||||
# - ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_02_NAME}/logs:/var/logs/kafka
|
||||
# - ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_02_NAME}/conf:/etc/kafka
|
||||
#volumes:
|
||||
#- ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_02_NAME}/lib:/var/lib/kafka
|
||||
#- ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_02_NAME}/logs:/var/logs/kafka
|
||||
#- ${DOCKER_DATA_PATH}/kafka/${KAFKA_CONTAINER_02_NAME}/conf:/etc/kafka
|
||||
environment:
|
||||
KAFKA_BROKER_ID: 2
|
||||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
|
||||
|
|
@ -99,6 +101,7 @@ services:
|
|||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
|
||||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
|
||||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
||||
KAFKA_LISTENERS: PLAINTEXT://kafka2:9092,PLAINTEXT_HOST://localhost:${KAFKA_01_LOCAL_PORT}
|
||||
networks:
|
||||
- gitlink_network
|
||||
restart: always
|
||||
|
|
@ -107,9 +110,9 @@ services:
|
|||
container_name: ${GNS_READER_CONTAINER_NAME}
|
||||
hostname: gitlink_reader
|
||||
image: gitlink/gns-reader:${GITLINK_NOTIFICATION_SYS_VERSION}
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: middleware/reader.Dockerfile
|
||||
#build:
|
||||
# context: ../
|
||||
# dockerfile: middleware/reader.Dockerfile
|
||||
networks:
|
||||
- gitlink_network
|
||||
environment:
|
||||
|
|
@ -129,9 +132,9 @@ services:
|
|||
container_name: ${GNS_WRITER_CONTAINER_NAME}
|
||||
hostname: gitlink_writer
|
||||
image: gitlink/gns-writer:${GITLINK_NOTIFICATION_SYS_VERSION}
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: middleware/writer.Dockerfile
|
||||
#build:
|
||||
# context: ../
|
||||
# dockerfile: middleware/writer.Dockerfile
|
||||
networks:
|
||||
- gitlink_network
|
||||
environment:
|
||||
|
|
@ -151,9 +154,9 @@ services:
|
|||
container_name: ${GNS_EXECUTOR_CONTAINER_NAME}
|
||||
hostname: gitlink_executor
|
||||
image: gitlink/gns-executor:${GITLINK_NOTIFICATION_SYS_VERSION}
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: middleware/executor.Dockerfile
|
||||
#build:
|
||||
# context: ../
|
||||
# dockerfile: middleware/executor.Dockerfile
|
||||
networks:
|
||||
- gitlink_network
|
||||
volumes:
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
mvn -f ../pom.xml clean package -DskipTests && docker-compose -f services.yml up --build --force-recreate
|
||||
docker-compose -f services.yml up -d --build --force-recreate
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>2.3.4.RELEASE</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>2.3.4.RELEASE</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
|
|
|||
Loading…
Reference in New Issue