services: harvester: build: . image: turnstone-harvester:latest environment: TURNSTONE_URL: http://turnstone:8534 # or http://host.docker.internal:8534 for host-network Turnstone TURNSTONE_SOURCES: /patterns/sources.yaml volumes: - /var/log:/var/log:ro - /run/log/journal:/run/log/journal:ro - ../patterns:/patterns:ro # sources.yaml lives here networks: - turnstone-net restart: "no" # run on demand; use cron or systemd timer to repeat # To run on a schedule, replace restart: "no" with a cron timer via: # docker run --rm turnstone-harvester:latest push # or add a systemd timer that calls: # docker compose -f docker-compose.yml run --rm harvester networks: turnstone-net: external: true # join the same network as the main Turnstone container