mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-06-10 19:26: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.
33 lines
831 B
YAML
33 lines
831 B
YAML
# DEV Compose file.
|
|
# For a production file see: README.md
|
|
|
|
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
|
|
ports:
|
|
- 6379:6379
|
|
|
|
app:
|
|
build: .
|
|
env_file: .env.dev
|
|
depends_on:
|
|
- redis
|
|
restart: unless-stopped
|
|
ports:
|
|
- 3000:8000
|
|
|
|
healthcheck:
|
|
test: ['CMD', 'curl', '--fail', 'http://127.0.0.1:8000/api/live/']
|
|
interval: 1m
|
|
timeout: 3s
|
|
retries: 2
|
|
start_period: 5s
|