feat: add /files/{file} GET and DELETE methods

This commit is contained in:
cătălin 2022-06-28 14:11:37 +02:00
commit 4a4a0a2149
No known key found for this signature in database
GPG key ID: C378F1E869F05A95
7 changed files with 252 additions and 60 deletions

View file

@ -10,7 +10,18 @@ services:
- SFU_FILES_DIR=./files
volumes:
- ./:/opt/sfu
healthcheck:
test: "curl http://localhost:$SFU_PORT/health"
interval: 1s
timeout: 1s
retries: 3
start_period: 1s
deploy:
resources:
limits:
cpus: "0.5"
memory: "200M"
restart: always
proxy:
image: caddy
volumes:
@ -18,3 +29,6 @@ services:
- ./design:/usr/share/caddy/www/design
ports:
- '8080:80'
depends_on:
app:
condition: service_healthy