Files
one-click-apps/public/v4/apps/redis.yml
Edward 91daa6b904 Tidy instructions spelling & spacing (#369)
* tidy up instructions spelling/spacing

* remove spaces in empty lines

Co-authored-by: Edward <edward@finchit.co.za>
Co-authored-by: Kasra Bigdeli <kasra85@gmail.com>
2021-03-14 14:09:07 -04:00

36 lines
1.6 KiB
YAML

captainVersion: 4
services:
$$cap_appname:
volumes:
- $$cap_appname-redis-data:/data
restart: always
environment:
REDIS_PASSWORD: $$cap_redis_password
caproverExtra:
dockerfileLines:
- FROM redis:$$cap_redis_version
- CMD exec redis-server --requirepass "$$cap_redis_password"
notExposeAsWebApp: 'true'
caproverOneClickApp:
variables:
- id: $$cap_redis_version
label: Redis Version Tag
description: 'Check out their Docker page for the valid tags: https://hub.docker.com/_/redis?tab=tags'
defaultValue: '5'
validRegex: /^([^\s^\/])+$/
- id: $$cap_redis_password
label: Redis Password
validRegex: /^(\w|[^\s"])+$/
instructions:
start: >-
Redis is an open source key-value store that functions as a data structure server.
After installation on CapRover, it will be available as srv-captain--YOUR_CONTAINER_NAME at port 6379 to other CapRover apps.
Enter your Redis container name and click on next. It will take about a minute for the process to finish.
end: "Redis is deployed and available as srv-captain--$$cap_appname:6379 to other apps. For example with NodeJS: const client = redis.createClient(6379, 'srv-captain--$$cap_appname' , {password: '$$cap_redis_password'})"
displayName: ''
isOfficial: true
description: Redis is an in-memory data structure store, used as a database, cache and message broker
documentation: Taken from https://hub.docker.com/_/redis