2021-06-01 19:32:28 +00:00
|
|
|
---
|
2023-08-05 15:53:22 +00:00
|
|
|
redis_image: "docker.io/library/redis:latest"
|
|
|
|
|
|
|
|
# @var redis_volumes:description: > Define required docker volumes.
|
|
|
|
# @end
|
|
|
|
# @var redis_volumes:example: >
|
|
|
|
# redis_volumes:
|
|
|
|
# - name: data
|
|
|
|
# # target location inside the container
|
|
|
|
# dest: /data
|
|
|
|
# type: volume
|
2022-01-26 20:01:18 +00:00
|
|
|
# @end
|
2023-08-05 15:53:22 +00:00
|
|
|
redis_volumes:
|
|
|
|
- name: "redis-data"
|
|
|
|
dest: /data
|
2021-06-01 19:32:28 +00:00
|
|
|
|
2023-08-05 15:53:22 +00:00
|
|
|
# @var redis_network:description: >
|
|
|
|
# Name of the container network. If the name ends with `.network`, the network will be created with the specified configuration.
|
|
|
|
# Otherwise, the network must already exist and the container will be attached to the network.
|
|
|
|
# @end
|
|
|
|
redis_network: "redis.network"
|
|
|
|
redis_network_ipv6_enabled: False
|
|
|
|
# @var redis_network_ipv6_subnet:value: $ "_unset_"
|
|
|
|
# @var redis_network_ipv6_subnet:example: $ "fd00:0:0:2::/64"
|
|
|
|
# @var redis_network_ipv6_gateway:value: $ "_unset_"
|
|
|
|
# @var redis_network_ipv6_gateway:example: $ "fd00:0:0:2::1"
|
2021-06-01 19:32:28 +00:00
|
|
|
|
2023-08-05 15:53:22 +00:00
|
|
|
# @var redis_network_ipv4_subnet:value: $ "_unset_"
|
|
|
|
# @var redis_network_ipv4_gateway:value: $ "_unset_"
|
2021-06-01 19:32:28 +00:00
|
|
|
|
2023-08-05 15:53:22 +00:00
|
|
|
# @var redis_exposed_ports:description: >
|
|
|
|
# Ports you want to publish outside of Docker. Redis is running on `6379` inside of the container.
|
|
|
|
# @end
|
|
|
|
redis_exposed_ports: []
|
2021-06-01 19:32:28 +00:00
|
|
|
|
2023-08-05 15:53:22 +00:00
|
|
|
redis_cap_add: []
|
|
|
|
redis_cap_drop: []
|
2021-06-01 19:32:28 +00:00
|
|
|
|
2023-08-05 15:53:22 +00:00
|
|
|
redis_podman_args:
|
|
|
|
- --pids-limit=-1
|
|
|
|
- --health-cmd='["redis-cli ping | grep PONG"]'
|
|
|
|
- --health-interval=5s
|
|
|
|
- --health-timeout=5s
|
|
|
|
- --health-retries=6
|
|
|
|
- --health-on-failure=kill
|
2021-06-01 19:32:28 +00:00
|
|
|
|
2023-08-05 21:49:35 +00:00
|
|
|
redis_log_level: "notice"
|
2021-06-01 19:32:28 +00:00
|
|
|
|
2023-08-05 15:53:22 +00:00
|
|
|
redis_timeout: 300
|
2021-06-01 19:32:28 +00:00
|
|
|
redis_databases: 16
|
|
|
|
|
|
|
|
# @var redis_save:description: Set to an empty set to disable persistence (saving the DB to disk).
|
|
|
|
redis_save:
|
|
|
|
- 900 1
|
|
|
|
- 300 10
|
|
|
|
- 60 10000
|
|
|
|
|
|
|
|
redis_rdbcompression: "yes"
|
|
|
|
redis_appendonly: "no"
|
|
|
|
redis_appendfsync: "everysec"
|
|
|
|
|
|
|
|
# @var redis_requirepass:description: Require authentication to Redis with a password.
|
|
|
|
# @var redis_requirepass:value: $ "_unset_"
|
|
|
|
|
|
|
|
# @var redis_disabled_commands:description: Disable certain Redis commands for security reasons.
|
|
|
|
redis_disabled_commands: []
|
|
|
|
# @var redis_disabled_commands:example: >
|
|
|
|
# redis_disabled_commands:
|
|
|
|
# - FLUSHDB
|
|
|
|
# - FLUSHALL
|
|
|
|
# - KEYS
|
|
|
|
# - PEXPIRE
|
|
|
|
# - DEL
|
|
|
|
# - CONFIG
|
|
|
|
# - SHUTDOWN
|
|
|
|
# - BGREWRITEAOF
|
|
|
|
# - BGSAVE
|
|
|
|
# - SAVE
|
|
|
|
# - SPOP
|
|
|
|
# - SREM
|
|
|
|
# - RENAME
|
|
|
|
# - DEBUG
|
|
|
|
# @end
|