services: api: build: context: . dockerfile: Dockerfile image: emweb-api:latest container_name: emweb-api ports: - "8765:8765" restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8765/health', timeout=3)"] interval: 30s timeout: 5s retries: 3 start_period: 10s