version: "3.9" services: paf-pro: build: . ports: - "8000:8000" volumes: # Mount local data directory so the 240 MB SQLite DB isn't in the image. # The database must already be built: paf download onspd && paf import onspd - ./data:/app/data environment: PAF_DB_PATH: /app/data/paf_pro.db LOG_FORMAT: json LOG_LEVEL: INFO CORS_ORIGINS: "*" # GEONAMES_USERNAME: your_username_here restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/status')"] interval: 30s timeout: 5s retries: 3 start_period: 15s