A community based topic aggregation platform built on atproto
1services:
2 kagi-aggregator:
3 build:
4 context: .
5 dockerfile: Dockerfile
6 container_name: kagi-news-aggregator
7 restart: unless-stopped
8
9 # Environment variables - override in .env file or here
10 environment:
11 # Required: Aggregator credentials
12 - AGGREGATOR_HANDLE=${AGGREGATOR_HANDLE}
13 - AGGREGATOR_PASSWORD=${AGGREGATOR_PASSWORD}
14
15 # Optional: Override Coves API URL
16 - COVES_API_URL=${COVES_API_URL:-https://api.coves.social}
17
18 # Optional: Run immediately on startup (useful for testing)
19 - RUN_ON_STARTUP=${RUN_ON_STARTUP:-false}
20
21 # Mount config file if you want to modify it without rebuilding
22 volumes:
23 - ./config.yaml:/app/config.yaml:ro
24 - ./data:/app/data # For state persistence (if implemented)
25
26 # Use env_file to load credentials from .env
27 env_file:
28 - .env
29
30 # Logging configuration
31 logging:
32 driver: "json-file"
33 options:
34 max-size: "10m"
35 max-file: "3"
36
37 # Health check
38 healthcheck:
39 test: ["CMD", "pgrep", "cron"]
40 interval: 60s
41 timeout: 10s
42 retries: 3
43 start_period: 10s
44
45# Optional: Networks for multi-container setups
46# networks:
47# coves:
48# external: true