1
0
forked from PGL/Clyde

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.
This commit is contained in:
Debucquoy Anthony 2024-04-02 00:21:15 +02:00
parent cb36aa8a30
commit 3761fa6f49
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -12,11 +12,18 @@ services:
build: backend/. build: backend/.
ports: ports:
- "8080:8080" - "8080:8080"
volumes:
- cdn:/backend/cdn
ulimits: ulimits:
nofile: nofile:
soft: 65536 soft: 65536
hard: 65536 hard: 65536
front: front:
build: frontend/. build: frontend/.
volumes:
- cdn:/app/front/dist/cdn
ports: ports:
- "8000:8080" - "8000:8080"
volumes:
cdn: