From b12999210ff3ff941023fe650ab037846784ef2a Mon Sep 17 00:00:00 2001 From: yusing Date: Sun, 14 Sep 2025 21:24:01 +0800 Subject: [PATCH] feat(docker): add tmpfs caching for Next.js in compose files --- compose.example.yml | 2 ++ rootless-compose.example.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/compose.example.yml b/compose.example.yml index 700c771c..014d6bc9 100755 --- a/compose.example.yml +++ b/compose.example.yml @@ -28,6 +28,8 @@ services: env_file: .env user: ${GODOXY_UID:-1000}:${GODOXY_GID:-1000} read_only: true + tmpfs: + - /app/.next/cache # next image caching security_opt: - no-new-privileges:true cap_drop: diff --git a/rootless-compose.example.yml b/rootless-compose.example.yml index 221f9b09..d579f40a 100644 --- a/rootless-compose.example.yml +++ b/rootless-compose.example.yml @@ -26,6 +26,8 @@ services: restart: unless-stopped env_file: .env read_only: true + tmpfs: + - /app/.next/cache # next image caching security_opt: - no-new-privileges:true cap_drop: