sfu/docker-compose.yml

34 lines
661 B
YAML

---
version: "3.9"
services:
app:
build:
context: .
target: run_dev
environment:
- SFU_PORT=80
- 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:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./design:/usr/share/caddy/www/design
ports:
- '8080:80'
depends_on:
app:
condition: service_healthy