feat: add cache volume configuration to docker-compose files for improved caching management in development and production environments

This commit is contained in:
Julien Froidefond
2025-10-17 11:22:55 +02:00
parent a0ce7c9503
commit 4f28df6818
2 changed files with 5 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ services:
- /app/node_modules - /app/node_modules
- /app/.next - /app/.next
- ~/.pnpm-store:/app/.pnpm-store - ~/.pnpm-store:/app/.pnpm-store
- cache_data:/app/.cache
environment: environment:
- NODE_ENV=development - NODE_ENV=development
- MONGO_USER=admin - MONGO_USER=admin
@@ -58,3 +59,4 @@ services:
volumes: volumes:
mongodb_data: mongodb_data:
cache_data:

View File

@@ -12,6 +12,8 @@ services:
restart: unless-stopped restart: unless-stopped
ports: ports:
- "3020:3000" - "3020:3000"
volumes:
- stripstream_cache:/app/.cache
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- MONGODB_URI=${MONGODB_URI} - MONGODB_URI=${MONGODB_URI}
@@ -88,3 +90,4 @@ networks:
volumes: volumes:
stripstream_mongodb_data: stripstream_mongodb_data:
stripstream_cache: