Ver código fonte

redis and asynq service

Yi 3 anos atrás
pai
commit
cee5f3f766
2 arquivos alterados com 36 adições e 0 exclusões
  1. 26 0
      redis/docker-compose.yml
  2. 10 0
      redis/redis.conf

+ 26 - 0
redis/docker-compose.yml

@@ -0,0 +1,26 @@
+version: "3"
+services:
+  redis:
+    image: redis:latest
+    restart: "always"
+    container_name: "redis"
+    ports:
+      - "6379:6379"
+    volumes:
+      - ./redis.conf:/etc/redis/redis.conf
+      - ./data:/data
+      - ./logs:/logs
+    command: redis-server /etc/redis/redis.conf
+    privileged: true
+
+  asynqmon:
+    image: hibiken/asynqmon:latest
+    container_name: asynqmon_asynq
+    ports:
+      - 8080:8080
+    command:
+      - '--redis-addr=redis:6379'
+      - '--redis-db=0'
+    restart: always
+    depends_on:
+      - redis

+ 10 - 0
redis/redis.conf

@@ -0,0 +1,10 @@
+bind 0.0.0.0
+port 6379
+daemonize no
+supervised no
+pidfile /var/run/redis_6379.pid
+loglevel notice
+logfile "/logs/redis.log"
+databases 16
+always-show-logo yes
+appendonly yes