homelab/roles/redis/tasks/cache.yml

10 lines
325 B
YAML
Raw Normal View History

2024-10-21 20:46:58 +05:00
---
- name: Run redis container
become: true
community.docker.docker_container:
name: "{{ container_name }}"
image: "{{ image }}"
command: "{{ shared_cmd + ['--save', '', '--maxmemory', '128mb', '--maxmemory-policy', 'allkeys-lru'] }}"
networks: "{{ docker_networks }}"
restart_policy: unless-stopped