name: spipe services: api: build: context: . dockerfile: deploy/Dockerfile target: api restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/health', timeout=5)"] interval: 30s timeout: 10s retries: 3 web: build: context: . dockerfile: deploy/Dockerfile target: web ports: - "${SPIPE_PORT:-80}:80" restart: unless-stopped depends_on: api: condition: service_healthy