services: blink: # Build locally, or use the published image: # image: ghcr.io/blink-dashboard/blink:latest build: context: . dockerfile: Dockerfile image: ghcr.io/blink-dashboard/blink:latest container_name: blink restart: unless-stopped ports: - "8080:8080" volumes: # Your dashboard configuration (blink.yml) and custom widgets. - ./config:/config # Persistent state: SQLite database, widget storage and caches. - blink-data:/data # Optional: expose the Docker socket (read-only) for the docker widget. # - /var/run/docker.sock:/var/run/docker.sock:ro environment: - BLINK_LOG_LEVEL=INFO - BLINK_HOT_RELOAD=true # Provide secrets via the environment or Docker secrets, e.g.: # - GITHUB_TOKEN=ghp_xxx # env_file: # - .env healthcheck: test: [ "CMD", "python", "-c", "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8080/healthz').status==200 else 1)", ] interval: 30s timeout: 5s retries: 3 start_period: 10s volumes: blink-data: