mirror of
https://github.com/penpot/penpot.git
synced 2025-06-21 18:57:00 +02:00
🐳 Migrate from Redis to Valkey (#6666)
This commit is contained in:
parent
5faa619bc4
commit
b385f055e0
4 changed files with 20 additions and 13 deletions
|
@ -12,6 +12,13 @@ The initial prototype is completly reworked for provide a more consistent API
|
|||
and to have proper validation and params decoding. All the details can be found
|
||||
on [its own changelog](library/CHANGES.md)
|
||||
|
||||
**Penpot migrate from Redis to Valkey**
|
||||
|
||||
As [Valkey](https://valkey.io/) is an opne-souce fork of [Redis](https://redis.io/)
|
||||
version 7.2.4, this version of Penpot will be compatible with Redis but may diverge
|
||||
in future versions. Therefore, **migration from Redis to ValKey is recommended for all
|
||||
on-premises instances** that want to keep up to date.
|
||||
|
||||
### :heart: Community contributions (Thank you!)
|
||||
|
||||
### :sparkles: New features & Enhancements
|
||||
|
|
|
@ -111,7 +111,7 @@ services:
|
|||
depends_on:
|
||||
penpot-postgres:
|
||||
condition: service_healthy
|
||||
penpot-redis:
|
||||
penpot-valkey:
|
||||
condition: service_healthy
|
||||
|
||||
networks:
|
||||
|
@ -148,10 +148,10 @@ services:
|
|||
PENPOT_DATABASE_USERNAME: penpot
|
||||
PENPOT_DATABASE_PASSWORD: penpot
|
||||
|
||||
## Redis is used for the websockets notifications. Don't touch unless the redis
|
||||
## container has different parameters or different name.
|
||||
## Valkey (or previously redis) is used for the websockets notifications. Don't touch
|
||||
## unless the valkey container has different parameters or different name.
|
||||
|
||||
PENPOT_REDIS_URI: redis://penpot-redis/0
|
||||
PENPOT_REDIS_URI: redis://penpot-valkey/0
|
||||
|
||||
## Default configuration for assets storage: using filesystem based with all files
|
||||
## stored in a docker volume.
|
||||
|
@ -195,7 +195,7 @@ services:
|
|||
restart: always
|
||||
|
||||
depends_on:
|
||||
penpot-redis:
|
||||
penpot-valkey:
|
||||
condition: service_healthy
|
||||
|
||||
networks:
|
||||
|
@ -206,8 +206,8 @@ services:
|
|||
# communicate with the frontend.
|
||||
PENPOT_PUBLIC_URI: http://penpot-frontend:8080
|
||||
|
||||
## Redis is used for the websockets notifications.
|
||||
PENPOT_REDIS_URI: redis://penpot-redis/0
|
||||
## Valkey (or previowsly Redis) is used for the websockets notifications.
|
||||
PENPOT_REDIS_URI: redis://penpot-valkey/0
|
||||
|
||||
penpot-postgres:
|
||||
image: "postgres:15"
|
||||
|
@ -233,12 +233,12 @@ services:
|
|||
- POSTGRES_USER=penpot
|
||||
- POSTGRES_PASSWORD=penpot
|
||||
|
||||
penpot-redis:
|
||||
image: redis:7.2
|
||||
penpot-valkey:
|
||||
image: valkey/valkey:8.1
|
||||
restart: always
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
||||
test: ["CMD-SHELL", "valkey-cli ping | grep PONG"]
|
||||
interval: 1s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
|
|
@ -353,9 +353,9 @@ If you are not using SMTP configuration and want to log the emails in the consol
|
|||
PENPOT_FLAGS: [...] enable-log-emails
|
||||
```
|
||||
|
||||
## Redis
|
||||
## Valkey
|
||||
|
||||
The Redis configuration is very simple, just provide a valid redis URI. Redis is used
|
||||
The Valkey configuration is very simple, just provide a valid redis URI. Valkey is used
|
||||
mainly for websocket notifications coordination.
|
||||
|
||||
```bash
|
||||
|
|
|
@ -72,7 +72,7 @@ argument to helm install. For example,
|
|||
```bash
|
||||
helm install my-release \
|
||||
--set global.postgresqlEnabled=true \
|
||||
--set global.redisEnabled=true \
|
||||
--set global.valkeyEnabled=true \
|
||||
--set persistence.assets.enabled=true \
|
||||
penpot/penpot
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue