Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#cloud-config
ssh_authorized_keys:
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+xU8Tzj7FHrTldT2SW2i3+VXO+nU+tijkSIePuxZscYMMdEv32JrsFQAIQF+4JrGCzuilqOOz/ewIAKH6v4xW0f2XTOhA6oqTaJWhIMlovIVQq8txnBpSHoldWiT8nqGElUQA6PpUgLVjwCaUUtKuGHV2JNAsKUMH724wSHqHxc9m/SHB9TksWM74fIw67rsY4GKaRv7M2pFqbr//VlEM2LxXVCxf0Zs3fiF33yiAHWHHlTm6Tu9Q8QhYu1ikpZ6/K4GOuWzyZJjt7nVRqYio4dKi/D6DpHy8LyACAQP3MlGx2gNeqKcQGZ7O63CkPVB1j87pnH1XYvG97Nc9xgCf suda@suda-imac.local"
coreos:
units:
- name: "influxdb.service"
command: "start"
content: |
[Unit]
Description=InfluxDB container
After=docker.service
[Service]
RestartSec=10
Restart=always
TimeoutStartSec=90
Environment="CONTAINER_NAME=%N"
Environment="IMAGE_NAME=influxdb:1.5-alpine"
ExecStartPre=-/usr/bin/docker rm -f $CONTAINER_NAME
ExecStartPre=-/usr/bin/docker pull $IMAGE_NAME
ExecStart=/usr/bin/docker run --rm -v influxdb:/var/lib/influxdb -p 8086:8086 --name ${CONTAINER_NAME} ${IMAGE_NAME}
ExecStop=/usr/bin/docker stop $CONTAINER_NAME
- name: "kapacitor.service"
command: "start"
content: |
[Unit]
Description=Kapacitor container
After=influxdb.service
[Service]
RestartSec=10
Restart=always
TimeoutStartSec=90
Environment="CONTAINER_NAME=%N"
Environment="IMAGE_NAME=kapacitor:1.4-alpine"
ExecStartPre=-/usr/bin/docker rm -f $CONTAINER_NAME
ExecStartPre=-/usr/bin/docker pull $IMAGE_NAME
ExecStart=/usr/bin/docker run --rm -v kapacitor:/var/lib/kapacitor -p 9092:9092 --link influxdb:influxdb -e KAPACITOR_INFLUXDB_0_URLS_0=http://influxdb:8086 --name ${CONTAINER_NAME} ${IMAGE_NAME}
ExecStop=/usr/bin/docker stop $CONTAINER_NAME
- name: "chronograf.service"
command: "start"
content: |
[Unit]
Description=Chronograf container
After=influxdb.service
[Service]
RestartSec=10
Restart=always
TimeoutStartSec=90
Environment="CONTAINER_NAME=%N"
Environment="IMAGE_NAME=chronograf:1.5-alpine"
ExecStartPre=-/usr/bin/docker rm -f $CONTAINER_NAME
ExecStartPre=-/usr/bin/docker pull $IMAGE_NAME
ExecStart=/usr/bin/docker run --rm -v chronograf:/var/lib/chronograf -p 8888:8888 --link influxdb:influxdb --influxdb-url=http://influxdb:8086 --link kapacitor:kapacitor --name ${CONTAINER_NAME} ${IMAGE_NAME}
ExecStop=/usr/bin/docker stop $CONTAINER_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.