forked from supermy/mytools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,532 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/bash | ||
#sysctl vm.overcommit_memory=1 | ||
|
||
set -e | ||
|
||
if [ "$1" = 'redis-server' ]; then | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,56 @@ | ||
myredis: | ||
image: redis:latest | ||
myredis4master: | ||
image: supermy/docker-myredis:3.5 | ||
volumes_from: | ||
- data4master | ||
ports: | ||
- "6379:6379" | ||
|
||
myredis4slave1: | ||
image: supermy/docker-myredis:3.5 | ||
links: | ||
- myredis4master | ||
volumes_from: | ||
- data4slave | ||
ports: | ||
- "6379" | ||
|
||
myredis4slave2: | ||
image: supermy/docker-myredis:3.5 | ||
links: | ||
- myredis4master | ||
volumes_from: | ||
- data4slave | ||
ports: | ||
- "6379" | ||
|
||
myredis4slave3: | ||
image: supermy/docker-myredis:3.5 | ||
links: | ||
- myredis4master | ||
volumes_from: | ||
- data4slave | ||
ports: | ||
- "6379" | ||
|
||
|
||
#常用工具集合 | ||
data4master: | ||
image: busybox | ||
command: /bin/true | ||
volumes: | ||
- /Users/moyong/project/env-myopensource/3-tools/mytools/common/myredis/redis-master.conf:/etc/redis.conf | ||
|
||
data4slave: | ||
image: busybox | ||
command: /bin/true | ||
volumes: | ||
- /Users/moyong/project/env-myopensource/3-tools/mytools/common/myredis/redis-slave.conf:/etc/redis.conf | ||
|
||
#docker build -t supermy/docker-myredis:3.5 . && fig stop && fig rm --force && fig up -d && fig ps && fig logs | ||
|
||
#/myredis/conf/redis-master.conf:/usr/local/etc/redis/redis-master.conf | ||
|
||
#export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/" | ||
#build spring app use jdk1.7 | ||
#spring app 源代码 :https://github.com/supermy/docker-gs-messaging-redis | ||
#spring app 源代码 :https://github.com/supermy/docker-gs-messaging-redis | ||
#redis-benchmark -h 192.168.59.103 |
Oops, something went wrong.