From 8552f1d611fdd47decd6a24164df37b4b43e8a6c Mon Sep 17 00:00:00 2001 From: Heekyeong Park Date: Tue, 10 Sep 2024 14:27:44 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EB=8F=84=EC=BB=A4=20=EB=84=A4?= =?UTF-8?q?=ED=8A=B8=EC=9B=8C=ED=81=AC=20=EC=84=A4=EC=A0=95=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3105417..1646c24 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,8 @@ services: interval: 5s timeout: 1s retries: 2 + networks: + - default_bridge redis-master-1: container_name: redis-master-1 @@ -24,6 +26,8 @@ services: - 7101:7101 - 7102:7102 - 7103:7103 + networks: + - default_bridge redis-master-2: container_name: redis-master-2 @@ -31,6 +35,8 @@ services: volumes: - ./redis/config/redis-master-2.conf:/etc/redis.conf command: redis-server /etc/redis.conf + networks: + - default_bridge redis-master-3: container_name: redis-master-3 @@ -38,6 +44,8 @@ services: volumes: - ./redis/config/redis-master-3.conf:/etc/redis.conf command: redis-server /etc/redis.conf + networks: + - default_bridge redis-slave-1: container_name: redis-slave-1 @@ -45,6 +53,8 @@ services: volumes: - ./redis/config/redis-slave-1.conf:/etc/redis.conf command: redis-server /etc/redis.conf + networks: + - default_bridge redis-slave-2: container_name: redis-slave-2 @@ -52,6 +62,8 @@ services: volumes: - ./redis/config/redis-slave-2.conf:/etc/redis.conf command: redis-server /etc/redis.conf + networks: + - default_bridge redis-slave-3: container_name: redis-slave-3 @@ -59,11 +71,15 @@ services: volumes: - ./redis/config/redis-slave-3.conf:/etc/redis.conf command: redis-server /etc/redis.conf + networks: + - default_bridge redis-cluster-entry: image: redis container_name: redis-cluster command: redis-cli --cluster create redis-master-1:7001 redis-master-2:7002 redis-master-3:7003 redis-slave-1:7101 redis-slave-2:7102 redis-slave-3:7103 --cluster-replicas 1 --cluster-yes + networks: + - default_bridge depends_on: - redis-master-1 - redis-master-2 @@ -89,6 +105,8 @@ services: hard: -1 volumes: - ./elk/elasticsearch/data:/usr/share/elasticsearch/data + networks: + - default_bridge logstash: container_name: logstash @@ -101,5 +119,9 @@ services: - "5044:5044" environment: - "xpack.monitoring.enabled=false" - depends_on: - - elasticsearch \ No newline at end of file + networks: + - default_bridge + +networks: + default_bridge: + driver: bridge \ No newline at end of file