浏览代码

Worked on adding Redis passwords.

KrisVos130 8 年之前
父节点
当前提交
df38664759
共有 3 个文件被更改,包括 6 次插入31 次删除
  1. 1 0
      .gitignore
  2. 0 30
      docker-compose-production.yml
  3. 5 1
      docker-compose.yml

+ 1 - 0
.gitignore

@@ -7,6 +7,7 @@ Thumbs.db
 startRedis.cmd
 startMongo.cmd
 .database
+.redis
 dump.rdb
 npm-debug.log
 

+ 0 - 30
docker-compose-production.yml

@@ -1,30 +0,0 @@
-version: '2'
-services:
-  backend:
-    build: ./backend
-    ports:
-    - "8081:8081"
-    volumes:
-    - ./backend:/opt/app
-    links:
-    - mongo
-    - redis
-    environment:
-    - NGINX_PORT=81
-  frontend:
-    build: ./frontend
-    ports:
-    - "81:81"
-    volumes:
-    - ./frontend:/opt/app
-  mongo:
-    image: mongo
-    ports:
-    - "27017:27017"
-  mongoclient:
-    image: mongoclient/mongoclient
-    ports:
-    - "3000:3000"
-  redis:
-    image: redis
-    command: "--notify-keyspace-events Ex"

+ 5 - 1
docker-compose.yml

@@ -26,4 +26,8 @@ services:
     - "3000:3000"
   redis:
     image: redis
-    command: "--notify-keyspace-events Ex"
+    command: "--notify-keyspace-events Ex --requirepass ${REDIS_PASSWORD}"
+    volumes:
+    - .redis:/data
+    ports:
+    - "6371:6371"