Skip to content

Commit

Permalink
hotfix: 도커 네트워크 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlrude committed Sep 10, 2024
1 parent 672069a commit 8552f1d
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
interval: 5s
timeout: 1s
retries: 2
networks:
- default_bridge

redis-master-1:
container_name: redis-master-1
Expand All @@ -24,46 +26,60 @@ services:
- 7101:7101
- 7102:7102
- 7103:7103
networks:
- default_bridge

redis-master-2:
container_name: redis-master-2
image: redis
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
image: redis
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
image: redis
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
image: redis
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
image: redis
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
Expand All @@ -89,6 +105,8 @@ services:
hard: -1
volumes:
- ./elk/elasticsearch/data:/usr/share/elasticsearch/data
networks:
- default_bridge

logstash:
container_name: logstash
Expand All @@ -101,5 +119,9 @@ services:
- "5044:5044"
environment:
- "xpack.monitoring.enabled=false"
depends_on:
- elasticsearch
networks:
- default_bridge

networks:
default_bridge:
driver: bridge

0 comments on commit 8552f1d

Please sign in to comment.