From c13cf4a727539cac82eac2d72be7c1eb8ed72f24 Mon Sep 17 00:00:00 2001 From: zro Date: Mon, 8 Jun 2026 10:34:09 +0300 Subject: [PATCH] init --- .gitignore | 25 +++++++++++++++++++++++++ README.md | 1 + docker-compose.yml | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 docker-compose.yml 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