services: osrm: image: osrm/osrm-backend container_name: osrm restart: unless-stopped ports: - "5002:5000" volumes: - ./docker/osrm/data:/data command: osrm-routed --algorithm mld /data/connecticut-latest.osrm healthcheck: test: ["CMD-SHELL", "echo > /dev/tcp/localhost/5000"] interval: 30s timeout: 5s retries: 3 balloons-shop: build: . container_name: balloons-shop ports: - "3000:3000" env_file: - .env restart: unless-stopped depends_on: osrm: condition: service_healthy healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/catalog"] interval: 30s timeout: 10s retries: 3