From 3761fa6f49c2df313c209c88794c03b9dfb5dcc5 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Tue, 2 Apr 2024 00:21:15 +0200 Subject: [PATCH] Adding cdn support with compose Now when you upload a file, the path is stored to the db and the file is accesible on the client with : `localhost:8000/cdn/3ed026aa-366f-4f33-bc51-fb59d37e35ee.png` for instance. --- compose.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compose.yaml b/compose.yaml index a127b25..ec5f6bc 100644 --- a/compose.yaml +++ b/compose.yaml @@ -12,11 +12,18 @@ services: build: backend/. ports: - "8080:8080" + volumes: + - cdn:/backend/cdn ulimits: nofile: soft: 65536 hard: 65536 front: build: frontend/. + volumes: + - cdn:/app/front/dist/cdn ports: - "8000:8080" + +volumes: + cdn: