The osrm-backend image is too minimal to run any health probe. Drop the healthcheck entirely and use a plain depends_on so the shop starts after OSRM, without blocking on a health condition that can never pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
574 B
YAML
27 lines
574 B
YAML
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
|
|
|
|
balloons-shop:
|
|
build: .
|
|
container_name: balloons-shop
|
|
ports:
|
|
- "3000:3000"
|
|
env_file:
|
|
- .env
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- osrm
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/catalog"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|