ctr-proxy-monitoring-1.service.j2 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. [Unit]
  2. Description=Container proxy-monitoring-1
  3. [Service]
  4. Type=simple
  5. TimeoutStartSec=5m
  6. Slice=container-small.slice
  7. ExecStartPre=-/usr/bin/docker rm "proxy-monitoring-1"
  8. ExecStart=/usr/bin/docker run --rm --name "proxy-monitoring-1" \
  9. --volumes-from proxy-shared-data-1 \
  10. -a stdout -a stderr \
  11. -e "OO_ENV={{ oo_env }}" \
  12. -e "OO_CTR_TYPE=proxy" \
  13. -e "OO_ZABBIX_HOSTGROUPS={{ oo_zabbix_hostgroups | join(',') }}" \
  14. -e "OO_ZABBIX_TEMPLATES=Template OpenShift Proxy Ctr" \
  15. "docker-registry.ops.rhcloud.com/oso-v2-monitoring:{{ oo_env }}"
  16. ExecReload=-/usr/bin/docker stop "proxy-monitoring-1"
  17. ExecReload=-/usr/bin/docker rm "proxy-monitoring-1"
  18. ExecStop=-/usr/bin/docker stop "proxy-monitoring-1"
  19. [Install]
  20. WantedBy=container.target
  21. # Container information
  22. X-ContainerId=proxy-monitoring-1
  23. X-ContainerImage=docker-registry.ops.rhcloud.com/oso-v2-monitoring:{{ oo_env }}
  24. X-ContainerUserId=
  25. X-ContainerRequestId=LwiWtYWaAvSavH6Ze53QJg
  26. X-ContainerType=simple
  27. X-PortMapping=80:80
  28. X-PortMapping=443:443
  29. X-PortMapping=4999:4999