services: backend: build: context: .. dockerfile: backend/Dockerfile ports: - "0.0.0.0:8948:8000" healthcheck: test: ["CMD", "python", "-c", "from urllib.request import urlopen; urlopen('http://127.0.0.1:8000/api/health', timeout=3).close()"] interval: 30s timeout: 5s retries: 3 restart: unless-stopped