From 5172b970c568c177de06dafa8694e7df0e14a3ba Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Fri, 20 Dec 2024 17:42:01 +0100 Subject: [PATCH] fix: add a new volume for avatars --- docker/.env.example | 3 +-- docker/docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/.env.example b/docker/.env.example index f2b0d798..834b3e17 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -15,7 +15,7 @@ HTTPS_ENABLED=false SESSION_SECRET=f661ff500fff6b0c8f91310b6fff6b0c SESSION_NAME=s.id UPLOAD_DIR=/uploads -AVATAR_DIR=/uploads/avatars +AVATAR_DIR=/avatars UPLOAD_MAX_SIZE_IN_BYTES=2000000 INVITATION_JWT_SECRET=dev_only INVITATION_EXPIRES_IN=24h @@ -72,4 +72,3 @@ APP_REDIS_PORT=9001 REDIS_ENABLED=false REDIS_HOST=redis REDIS_PORT=6379 - diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 36ebce9e..bd0f2d39 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -12,6 +12,7 @@ services: - app-network volumes: - api-data:/app/uploads + - api-avatars-data:/app/avatars depends_on: mongo: condition: service_healthy @@ -55,6 +56,7 @@ services: volumes: mongo-data: api-data: + api-avatars-data: networks: db-network: