services: web: image: floorithardwoodfloors-static build: context: . dockerfile: Dockerfile ports: - "8096:80" depends_on: api: condition: service_healthy restart: unless-stopped api: image: floorithardwoodfloors-api build: context: ./api dockerfile: Dockerfile env_file: ./api/.env expose: - "3001" healthcheck: test: ["CMD", "python3", "-c", "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://localhost:3001/health',timeout=3).status==200 else 1)"] interval: 10s timeout: 5s retries: 3 restart: unless-stopped