Hello all! I have the following docker-compose file:
version: '3'
services:
# Define an InfluxDB service
influxdb:
image: influxdb:latest
restart: always
volumes:
- /home/devops/influxdb/data:/var/lib/influxdb
- /home/devops/influxdb/config:/etc/influxdb/
ports:
- "8086:8086"
- "8082:8082"
- "8089:8089"
grafana:
image: grafana/grafana:latest
restart: always
#volumes:
# - /home/devops/grafana/data:/var/lib/grafana
# - /home/devops/grafana/config:/etc/grafana
links:
- influxdb
ports:
- "3000:3000"
user: "472"
# Define a Kapacitor service
kapacitor:
image: kapacitor:latest
restart: always
environment:
KAPACITOR_HOSTNAME: kapacitor
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086
volumes:
- /home/devops/kapacitor/data/:/var/lib/kapacitor/
- /home/devops/kapacitor/config/:/etc/kapacitor/
links:
- influxdb
ports:
- "9092:9092"
# Look into cmd option
# command: ['']
# How to copy .tick script to this container from host ? /devops/tick_script
How can I kick off my .tick script inside my kapacitor container, with the .tick script being on the host machine?