version: "3" services: scraper: container_name: scraper build: . volumes: - ./example.toml:/etc/config.toml # Splunk Enterprise server: splunk: image: splunk/splunk:latest container_name: splunk environment: - SPLUNK_START_ARGS=--accept-license - SPLUNK_HEC_TOKEN=00000000-0000-0000-0000-000000000000 - SPLUNK_PASSWORD=changeme ports: - 18000:8000 - 8088:8088 healthcheck: test: [ 'CMD', 'curl', '-f', 'http://localhost:8000' ] interval: 5s timeout: 5s retries: 20 volumes: - ./splunk.yml:/tmp/defaults/default.yml - /opt/splunk/var - /opt/splunk/etc