From dc972620a71d5f5d20a9fe08818603e26bf060a1 Mon Sep 17 00:00:00 2001 From: Richard Bullington-McGuire Date: Thu, 16 Jan 2025 12:45:32 -0500 Subject: [PATCH] Use tmpfs for freezing-web cache This avoids permission problems since freezing-web runs as UID 100. It also dumps the cache on every restart of the service, which is fine for this sort of cache anyway. --- docker-compose.yml | 6 +++++- web-cache/.gitkeep | 0 2 files changed, 5 insertions(+), 1 deletion(-) delete mode 100644 web-cache/.gitkeep diff --git a/docker-compose.yml b/docker-compose.yml index e68d2eb..970c5f9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -213,7 +213,11 @@ services: TIMEZONE: ${TIMEZONE:-America/New_York} VIRTUAL_HOST: ${FREEZING_WEB_FQDN} volumes: - - ./web-cache:/cache + - type: tmpfs + target: /cache + tmpfs: + size: 100M + mode: 1777 restart: always logging: driver: awslogs diff --git a/web-cache/.gitkeep b/web-cache/.gitkeep deleted file mode 100644 index e69de29..0000000