cryptgeon/docker-compose.yaml

30 lines
826 B
YAML
Raw Permalink Normal View History

2022-11-14 15:47:12 +01:00
services:
redis:
image: redis:7-alpine
# This is required to stay in RAM only.
command: redis-server --save "" --appendonly no
2022-11-14 15:47:12 +01:00
# 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
2022-11-14 15:47:12 +01:00
app:
image: cupcakearmy/cryptgeon:latest
depends_on:
- redis
environment:
# Size limit for a single note.
SIZE_LIMIT: 4 MiB
ports:
2023-01-13 19:36:26 +01:00
- 80:8000
2024-08-22 18:40:56 +02:00
2023-06-23 10:15:31 +02:00
# 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