commit c13cf4a727539cac82eac2d72be7c1eb8ed72f24 Author: zro Date: Mon Jun 8 10:34:09 2026 +0300 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..805ae17 --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# Secrets +.env +*.pem +*.key + +# Dependencies +node_modules/ +vendor/ + +# Build outputs +dist/ +build/ +*.exe + +# IDE +.vscode/ +.idea/ +*.swp + +# OS +.DS_Store +Thumbs.db + +# Logs +*.log diff --git a/README.md b/README.md new file mode 100644 index 0000000..0de4bc7 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Redis \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0f5b5a8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,37 @@ +services: + redis: + image: redis:8-alpine + container_name: redis + restart: unless-stopped + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 10s + timeout: 5s + retries: 5 + + volumes: + - redis_data:/data + + networks: + - net + + deploy: + resources: + limits: + cpus: '0.5' + memory: 256M + reservations: + cpus: '0.25' + memory: 128M + +volumes: + redis_data: + driver: local + driver_opts: + type: none + device: /mnt/redis + o: bind + +networks: + net: + external: true