Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from lamoda/docker_override
Browse files Browse the repository at this point in the history
Ability to use docker-compose.override for sentinel containers
  • Loading branch information
omnilight authored Jul 23, 2019
2 parents 964d468 + dedcd5f commit ba82673
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.php_cs.cache
.phpunit.result.cache
composer.lock
docker/docker-compose.override.yml
phpunit.xml
/vendor/
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ php-cs-fix:
@./vendor/bin/php-cs-fixer fix -vvv

up:
docker-compose -f docker/docker-compose.yml up -d
cd docker && docker-compose up -d

down:
docker-compose -f docker/docker-compose.yml down -v
cd docker && docker-compose down -v
10 changes: 10 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,40 @@ version: '2'
services:
redis-master:
image: redis:3.0-alpine
ports:
- "6379"

redis-slave:
image: redis:3.0-alpine
command: redis-server --slaveof redis-master 6379
links:
- redis-master
ports:
- "6379"

redis-sentinel:
build:
context: ./
image: lamoda/redis-sentinel:latest
links:
- redis-master
ports:
- "26379"

redis-sentinel2:
image: lamoda/redis-sentinel:latest
depends_on:
- redis-sentinel
links:
- redis-master
ports:
- "26379"

redis-sentinel3:
image: lamoda/redis-sentinel:latest
depends_on:
- redis-sentinel
links:
- redis-master
ports:
- "26379"

0 comments on commit ba82673

Please sign in to comment.