version: "3.8" services: daemon-boyfriend: build: . container_name: daemon-boyfriend restart: unless-stopped env_file: - .env environment: - PYTHONUNBUFFERED=1 depends_on: searxng: condition: service_healthy networks: - bot-network # Optional: SearXNG instance # Comment out if you're using an external SearXNG instance searxng: image: searxng/searxng:latest container_name: searxng restart: unless-stopped ports: - "8080:8080" volumes: - ./searxng:/etc/searxng:rw environment: - SEARXNG_BASE_URL=http://localhost:8080/ cap_drop: - ALL cap_add: - CHOWN - SETGID - SETUID healthcheck: test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/healthz"] interval: 30s timeout: 10s retries: 3 start_period: 10s networks: - bot-network networks: bot-network: driver: bridge