Explorar o código

some redif conf

bach %!s(int64=2) %!d(string=hai) anos
pai
achega
442bd64a9b
Modificáronse 5 ficheiros con 9 adicións e 2 borrados
  1. 1 1
      Docker/nginx/default.conf
  2. 3 0
      Docker/redis/Dockerfile
  3. 2 0
      Docker/redis/redis.conf
  4. 2 0
      docker-compose.yml
  5. 1 1
      src_d9

+ 1 - 1
Docker/nginx/default.conf

@@ -2,7 +2,7 @@ server {
     listen 80;
     root /var/www/d9/web;
     index index.html index.php;
-    server_name dev.eql;
+    server_name dev.eql.fr;
 
     charset utf-8;
 

+ 3 - 0
Docker/redis/Dockerfile

@@ -0,0 +1,3 @@
+FROM redis:4
+COPY redis.conf /usr/local/etc/redis/redis.conf
+CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]

+ 2 - 0
Docker/redis/redis.conf

@@ -0,0 +1,2 @@
+maxmemory 1gb
+maxmemory-policy allkeys-lru

+ 2 - 0
docker-compose.yml

@@ -17,8 +17,10 @@ services:
 
   redis:
     image: redis:6
+    command: redis-server /usr/local/etc/redis.conf
     volumes:
       - redis-data:/data
+      - ./Docker/redis/redis.conf:/usr/local/etc/redis.conf 
     networks:
       - redis
     ports:

+ 1 - 1
src_d9

@@ -1 +1 @@
-Subproject commit 8c7037b66d7bdcb8fd843cc296d0476810f6ee99
+Subproject commit 31a7b199487141b17ee2bbddef8cdb72ac6a0a5e