services: backend: build: context: ./backend env_file: .env volumes: - ./notebooks:/app/notebooks healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health')"] interval: 30s timeout: 5s retries: 3 frontend: build: context: ./frontend env_file: .env depends_on: backend: condition: service_healthy