# Optional test service; does not change any base platform service.
# From repository root:
# docker --context colima-opencti-tutorial compose -f lab/compose.yaml \
#   -f lab/compose.feeds.yaml up -d --no-deps feed-fixture
services:
  feed-fixture:
    image: opencti/worker:${OPENCTI_VERSION:?Run init-env.py}
    entrypoint: [python, -u, /fixtures/feed-source.py]
    command: []
    volumes:
      - ./fixtures/feed-source.py:/fixtures/feed-source.py:ro
    healthcheck:
      test: [CMD, python, -c, "import urllib.request; urllib.request.urlopen('http://localhost:8090/health', timeout=5).read()"]
      interval: 5s
      timeout: 6s
      retries: 6
    restart: "no"
