variable to contorl if redis volatile is present
This commit is contained in:
parent
86a5d13905
commit
d3a70a005f
2 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,7 @@ mastodon_nginx_symlink: "/var/www/html/mastodon"
|
|||
redis_pass: "{{ vault_mastodon_redis_password }}"
|
||||
redis_host: redis
|
||||
redis_port: 6379
|
||||
redis_volatile: true
|
||||
redis_cache_host: redis-volatile
|
||||
redis_cache_port: 6379
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ services:
|
|||
volumes:
|
||||
- ./redis:/data
|
||||
|
||||
{% if redis_volatile %}
|
||||
redis-volatile:
|
||||
image: redis:7-alpine
|
||||
restart: always
|
||||
|
@ -44,6 +45,8 @@ services:
|
|||
test: ['CMD', 'redis-cli', 'ping']
|
||||
networks:
|
||||
- internal_network
|
||||
|
||||
{% endif %}
|
||||
{% if es_enabled %}
|
||||
es:
|
||||
restart: always
|
||||
|
|
Loading…
Reference in a new issue