37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: caria
|
|
services:
|
|
interface:
|
|
build:
|
|
context: .
|
|
dockerfile: ui/Dockerfile
|
|
ports:
|
|
- "${CARIA_PORT:-8080}:80"
|
|
depends_on:
|
|
telemetry:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1/"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
telemetry:
|
|
environment:
|
|
WEATHER_URL: ${WEATHER_URL:-https://api.open-meteo.com/v1/forecast}
|
|
GEOCODER_URL: ${GEOCODER_URL:-https://photon.komoot.io/api/}
|
|
ROUTER_URL: ${ROUTER_URL:-https://router.project-osrm.org/route/v1/driving/}
|
|
TILE_URL: ${TILE_URL:-}
|
|
TILE_ATTRIBUTION: ${TILE_ATTRIBUTION:-© OpenStreetMap contributors}
|
|
build:
|
|
context: .
|
|
dockerfile: server/Dockerfile
|
|
restart: unless-stopped
|
|
read_only: true
|
|
cap_drop: [ALL]
|
|
security_opt: ["no-new-privileges:true"]
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:8080/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
|
|
interval: 15s
|
|
timeout: 3s
|
|
retries: 3
|