mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-04-02 16:28:15 +00:00
30 lines
826 B
YAML
30 lines
826 B
YAML
services:
|
|
redis:
|
|
image: redis:7-alpine
|
|
# This is required to stay in RAM only.
|
|
command: redis-server --save "" --appendonly no
|
|
# Set a size limit. See link below on how to customise.
|
|
# https://redis.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
|