mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-06-10 11:16:48 +00:00
1a243cc96a
Swap redis:7-alpine images to valkey/valkey:7-alpine across all
docker-compose files and example READMEs. Keep service name as
"redis" so that the default REDIS=redis://redis/ connection string
still resolves correctly in Docker networking.
Also add turbofish type annotations to redis crate calls in store.rs
for Rust 2024 never-type-fallback compatibility, and fix a typo
("notion" -> "note") in an error message.
30 lines
836 B
YAML
30 lines
836 B
YAML
services:
|
|
redis:
|
|
image: valkey/valkey:7-alpine
|
|
# This is required to stay in RAM only.
|
|
command: valkey-server --save "" --appendonly no
|
|
# Set a size limit. See link below on how to customise.
|
|
# https://valkey.io/docs/latest/operate/rs/databases/memory-performance/eviction-policy/
|
|
# --maxmemory 1gb --maxmemory-policy allkeys-lrulpine
|
|
# This prevents the creation of an anonymous volume.
|
|
tmpfs:
|
|
- /data
|
|
|
|
app:
|
|
image: cupcakearmy/cryptgeon:latest
|
|
depends_on:
|
|
- redis
|
|
environment:
|
|
# Size limit for a single note.
|
|
SIZE_LIMIT: 4 MiB
|
|
ports:
|
|
- 80:8000
|
|
|
|
# Optional health checks
|
|
# healthcheck:
|
|
# test: ["CMD", "curl", "--fail", "http://127.0.0.1:8000/api/live/"]
|
|
# interval: 1m
|
|
# timeout: 3s
|
|
# retries: 2
|
|
# start_period: 5s
|