From b5925e8a4a8873fb3d4db340281814556ccc246b Mon Sep 17 00:00:00 2001 From: Anna Shamray Date: Wed, 28 Feb 2024 16:54:25 +0100 Subject: [PATCH] :memo: update CHANGELOG with deployment warning --- CHANGELOG.rst | 10 ++++++++++ docker-compose.yml | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e1b5d620..977821dc 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -29,6 +29,16 @@ Change history * added `typeVersion` query parameter (#306) * fixed date-time parsing in API filtering (#308) +.. warning:: + + Change in deployment is required. `/media/` volume should be configured to share OAS files. + + Explanation: + + The new version of ``zgw_consumers`` library adds ``oas_file`` filed to ``Service`` model. + This field saves OAS file into ``MEDIA_ROOT`` folder. + The deployment now should have a volume for it. + Please look at the example in ``docker-compose.yml`` 2.1.1 (2022-06-24) ------------------ diff --git a/docker-compose.yml b/docker-compose.yml index bfc00a80..db1a1f51 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,3 +22,8 @@ services: - 8000:8000 depends_on: - db + volumes: + - media:/app/media # Shared media volume to get access to saved OAS files + +volumes: + media: