mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-09-26 20:41:45 +00:00
28 lines
731 B
YAML
28 lines
731 B
YAML
services:
|
|
cache:
|
|
image: valkey/valkey:9-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/topics/lru-cache/
|
|
# --maxmemory 1gb --maxmemory-policy allkeys-lru
|
|
# This prevents the creation of an anonymous volume.
|
|
tmpfs:
|
|
- /data
|
|
|
|
app:
|
|
image: cupcakearmy/cryptgeon:3
|
|
depends_on:
|
|
- cache
|
|
environment:
|
|
# Size limit for a single note.
|
|
SIZE_LIMIT: 4 MiB
|
|
ports:
|
|
- 80:8000
|
|
healthcheck:
|
|
test: ["CMD", "curl", "--fail", "http://127.0.0.1:8000/healthz"]
|
|
interval: 1m
|
|
timeout: 3s
|
|
retries: 2
|
|
start_period: 5s
|