version: '3.8' services: backend: build: . ports: - "7860:7860" volumes: - .:/app command: uvicorn app:app --host 0.0.0.0 --port 7860 frontend: image: nginx:alpine ports: - "80:80" volumes: - ./index.html:/usr/share/nginx/html/index.html - ./script.js:/usr/share/nginx/html/script.js - ./recorder.js:/usr/share/nginx/html/recorder.js depends_on: - backend