Skip to content

Commit b33accc

Browse files
committed
add redis configure file
1 parent 70646ce commit b33accc

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
##Defines the host name
12
DB_HOST=mysql
23
REDIS_HOST=redis
34
MONGO_HOST=mongo
@@ -6,3 +7,6 @@ NODE_HOST=node
67
##The following ports can not be duplicated
78
APP_PORT=3030
89
NGINX_PORT=3000
10+
11+
##Specifies the redis configuration file
12+
REDIS_CONF=/usr/local/etc/redis/redis.conf

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 2016-12-16
4+
5+
- add redis.conf
6+
37
## 2016-12-16
48

59
- Nginx(Power by Openresty)

docker-compose.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ services:
33
nginx:
44
image: openresty/openresty
55
hostname: nginx
6-
container_name: nginx
76
ports:
87
- "${NGINX_PORT}:80"
98
env_file:
@@ -18,7 +17,6 @@ services:
1817
node:
1918
image: node
2019
hostname: ${NODE_HOST}
21-
container_name: ${NODE_HOST}
2220
env_file:
2321
- ./docker/node.js/node.env
2422
- ./docker/mysql/mysql.env
@@ -37,7 +35,6 @@ services:
3735
mysql:
3836
image: mysql
3937
hostname: ${DB_HOST}
40-
container_name: ${DB_HOST}
4138
env_file:
4239
- ./docker/mysql/mysql.env
4340
volumes:
@@ -46,13 +43,13 @@ services:
4643
redis:
4744
image: redis
4845
hostname: ${REDIS_HOST}
49-
container_name: ${REDIS_HOST}
46+
command: redis-server ${REDIS_CONF}
5047
volumes:
51-
- ./docker/redis/data:/dataz
48+
- ./docker/redis/data:/data
49+
- ./docker/redis/etc/redis.conf:${REDIS_CONF}
5250
mongo:
5351
image: mongo
5452
hostname: ${MONGO_HOST}
55-
container_name: ${MONGO_HOST}
5653
volumes:
5754
- ./docker/mongo/data:/data/db
5855
- ./docker/mongo/etc/mongod.conf.orig:/etc/mongod.conf.orig

docker/redis/etc/redis.conf

Whitespace-only changes.

0 commit comments

Comments
 (0)