Update Docker Compose Configuration for Storage Volume

- Changed the storage volume mapping in `docker-compose.yml` from a relative path (`./api/storage`) to a named volume (`opnform_storage`). This modification enhances portability and consistency across different environments by utilizing Docker's volume management, ensuring that the storage is properly managed and isolated.

This change aims to improve the Docker setup by leveraging named volumes for better data persistence and management.
This commit is contained in:
Julien Nahum 2025-05-23 18:26:40 +02:00
parent b34f7b3961
commit 5ccf400a66
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ services:
image: jhumanj/opnform-api:latest image: jhumanj/opnform-api:latest
container_name: opnform-api container_name: opnform-api
volumes: &api-environment-volumes volumes: &api-environment-volumes
- ./api/storage:/usr/share/nginx/html/storage:rw - opnform_storage:/usr/share/nginx/html/storage:rw
environment: &api-env environment: &api-env
APP_ENV: production APP_ENV: production
# Database settings # Database settings