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:
parent
b34f7b3961
commit
5ccf400a66
|
|
@ -4,7 +4,7 @@ services:
|
|||
image: jhumanj/opnform-api:latest
|
||||
container_name: opnform-api
|
||||
volumes: &api-environment-volumes
|
||||
- ./api/storage:/usr/share/nginx/html/storage:rw
|
||||
- opnform_storage:/usr/share/nginx/html/storage:rw
|
||||
environment: &api-env
|
||||
APP_ENV: production
|
||||
# Database settings
|
||||
|
|
|
|||
Loading…
Reference in New Issue