File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # #Defines the host name
12DB_HOST = mysql
23REDIS_HOST = redis
34MONGO_HOST = mongo
@@ -6,3 +7,6 @@ NODE_HOST=node
67# #The following ports can not be duplicated
78APP_PORT = 3030
89NGINX_PORT = 3000
10+
11+ # #Specifies the redis configuration file
12+ REDIS_CONF = /usr/local/etc/redis/redis.conf
Original file line number Diff line number Diff line change 11# Change Log
22
3+ ## 2016-12-16
4+
5+ - add redis.conf
6+
37## 2016-12-16
48
59- Nginx(Power by Openresty)
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments