services: postgis: image: postgis/postgis:16-3.4 environment: POSTGRES_DB: gpsd POSTGRES_USER: gpsd POSTGRES_PASSWORD: gpsd ports: - "5432:5432" volumes: - postgis-data:/var/lib/postgresql/data - ./migrations/postgresql:/docker-entrypoint-initdb.d:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U gpsd -d gpsd"] interval: 10s timeout: 5s retries: 5 runtime: build: context: . dockerfile: deployment/docker/Dockerfile.runtime env_file: - .env.example depends_on: postgis: condition: service_healthy volumes: - ./data/cache:/app/data/cache - ./data/fdr:/app/data/fdr - ./data/input:/app/data/input:ro volumes: postgis-data: