services: unifi-log-insight: image: ghcr.io/jmasarweh/unifi-log-insight:latest pull_policy: always container_name: unifi-log-insight restart: unless-stopped shm_size: '256mb' logging: driver: "json-file" options: max-size: "10m" max-file: "5" ports: - "514:514/udp" - "8090:8000" volumes: - pgdata:/var/lib/postgresql/data - ./maxmind:/app/maxmind environment: SECRET_KEY: "************************" POSTGRES_PASSWORD: "***********************" ABUSEIPDB_API_KEY: "*****************************************" MAXMIND_ACCOUNT_ID: "************************************" MAXMIND_LICENSE_KEY: "***************************" TZ: "America/Detroit" healthcheck: test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')"] interval: 15s timeout: 10s retries: 10 start_period: 90s volumes: pgdata: name: unifi-log-insight-pgdata