diff --git a/templates/monitor/0/docker-compose.yml b/templates/monitor/0/docker-compose.yml new file mode 100644 index 0000000..4c89683 --- /dev/null +++ b/templates/monitor/0/docker-compose.yml @@ -0,0 +1,110 @@ +version: '2' + +services: + + cadvisor: + image: google/cadvisor:latest + volumes: + - /:/rootfs:ro + - /var/run:/var/run:rw + - /sys:/sys:ro + - /var/lib/docker/:/var/lib/docker:ro + - /dev/disk/:/dev/disk:ro + depends_on: + - influxdb + environment: + INFLUXDB_HOST: localhost + INFLUXDB_PORT: 8086 + INFLUXDB_NAME: cadvisor + INFLUXDB_USER: admin + INFLUXDB_PASS: ${INFLUXDB_PASSWORD} + command: -storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=db:8086 + links: + - influxdb:db +# ports: +# - 8080:8080 + labels: + io.rancher.container.hostname_override: container_name + io.rancher.scheduler.global: 'true' + logging: + driver: syslog + + influxdb: + image: tutum/influxdb + volumes: + - influxdb:/data + environment: + PRE_CREATE_DB: cadvisor + ADMIN_USER: admin + INFLUXDB_INIT_PWD: ${INFLUXDB_PASSWORD} +# ports: +# - 8083:8083 +# - 8086:8086 +# - 8090:8090 +# - 8099:8099 + labels: + io.rancher.container.hostname_override: container_name + + grafana: + image: grafana/grafana + environment: + GF_SERVER_ROOT_URL: https://${DOMAIN} + GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD} + volumes: + - grafana:/var/lib/grafana + links: + - influxdb:db +# ports: +# - 3000:3000 + labels: + io.rancher.container.pull_image: always + service: grafana + + letsencrypt: + image: janeczku/rancher-letsencrypt:v0.5.0 + environment: + API_VERSION: Production + AWS_ACCESS_KEY: '' + AWS_SECRET_KEY: '' + AZURE_CLIENT_ID: '' + AZURE_CLIENT_SECRET: '' + AZURE_RESOURCE_GROUP: '' + AZURE_SUBSCRIPTION_ID: '' + AZURE_TENANT_ID: '' + CERT_NAME: ${DOMAIN} + CLOUDFLARE_EMAIL: '' + CLOUDFLARE_KEY: '' + DNSIMPLE_EMAIL: '' + DNSIMPLE_KEY: '' + DNS_RESOLVERS: 8.8.8.8:53,8.8.4.4:53 + DOMAINS: ${DOMAIN} + DO_ACCESS_TOKEN: '' + DYN_CUSTOMER_NAME: '' + DYN_PASSWORD: '' + DYN_USER_NAME: '' + EMAIL: s.hoffmann@hoffmann-hosting.de + EULA: 'Yes' + GANDI_API_KEY: '' + OVH_APPLICATION_KEY: '' + OVH_APPLICATION_SECRET: '' + OVH_CONSUMER_KEY: '' + PROVIDER: HTTP + PUBLIC_KEY_TYPE: RSA-2048 + RENEWAL_PERIOD_DAYS: '20' + RENEWAL_TIME: '12' + VULTR_API_KEY: '' + volumes: + - /var/lib/rancher:/var/lib/rancher + - zertifikate:/etc/letsencrypt + labels: + io.rancher.container.agent.role: environment + io.rancher.container.create_agent: 'true' + io.rancher.container.start_once: "true" + service: letsencrypt + +volumes: + grafana: + driver: rancher-nfs + influxdb: + driver: rancher-nfs + diff --git a/templates/monitor/0/rancher-compose.yml b/templates/monitor/0/rancher-compose.yml new file mode 100644 index 0000000..ae02f1b --- /dev/null +++ b/templates/monitor/0/rancher-compose.yml @@ -0,0 +1,43 @@ +version: '2' + +catalog: + + name: monitor + version: 0.1 + description: Docker Monitor + questions: + - variable: INFLUXDB_PASSWORD + label: Influxdb Password + required: true + type: password + - variable: GRAFANA_PASSWORD + label: Grafana Password + required: true + type: password + - variable: DOMAIN + default: your-domain.de + label: Domain + required: true + type: string + +services: + + influxdb: + scale: 1 + start_on_create: true + + influxdb: + scale: 1 + start_on_create: true + + grafana: + scale: 1 + start_on_create: true + lb_config: + port_rules: + - target_port: 3000 + hostname: ${DOMAIN} + + letsencrypt: + scale: 1 + start_on_create: true \ No newline at end of file diff --git a/templates/monitor/1/docker-compose.yml b/templates/monitor/1/docker-compose.yml new file mode 100644 index 0000000..7262781 --- /dev/null +++ b/templates/monitor/1/docker-compose.yml @@ -0,0 +1,111 @@ +version: '2' + +services: + + cadvisor: + image: google/cadvisor:latest + volumes: + - /:/rootfs:ro + - /var/run:/var/run:rw + - /sys:/sys:ro + - /var/lib/docker/:/var/lib/docker:ro + - /dev/disk/:/dev/disk:ro + depends_on: + - influxdb + environment: + INFLUXDB_HOST: localhost + INFLUXDB_PORT: 8086 + INFLUXDB_NAME: cadvisor + INFLUXDB_USER: admin + INFLUXDB_PASS: ${INFLUXDB_PASSWORD} + command: -storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=db:8086 + links: + - influxdb:db +# ports: +# - 8080:8080 + labels: + io.rancher.container.hostname_override: container_name + io.rancher.scheduler.global: 'true' + io.rancher.scheduler.affinity:host_label: global=yes + logging: + driver: syslog + + influxdb: + image: tutum/influxdb + volumes: + - influxdb:/data + environment: + PRE_CREATE_DB: cadvisor + ADMIN_USER: admin + INFLUXDB_INIT_PWD: ${INFLUXDB_PASSWORD} +# ports: +# - 8083:8083 +# - 8086:8086 +# - 8090:8090 +# - 8099:8099 + labels: + io.rancher.container.hostname_override: container_name + + grafana: + image: grafana/grafana + environment: + GF_SERVER_ROOT_URL: https://${DOMAIN} + GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD} + volumes: + - grafana:/var/lib/grafana + links: + - influxdb:db +# ports: +# - 3000:3000 + labels: + io.rancher.container.pull_image: always + service: 3000 + + letsencrypt: + image: janeczku/rancher-letsencrypt:v0.5.0 + environment: + API_VERSION: Production + AWS_ACCESS_KEY: '' + AWS_SECRET_KEY: '' + AZURE_CLIENT_ID: '' + AZURE_CLIENT_SECRET: '' + AZURE_RESOURCE_GROUP: '' + AZURE_SUBSCRIPTION_ID: '' + AZURE_TENANT_ID: '' + CERT_NAME: ${DOMAIN} + CLOUDFLARE_EMAIL: '' + CLOUDFLARE_KEY: '' + DNSIMPLE_EMAIL: '' + DNSIMPLE_KEY: '' + DNS_RESOLVERS: 8.8.8.8:53,8.8.4.4:53 + DOMAINS: ${DOMAIN} + DO_ACCESS_TOKEN: '' + DYN_CUSTOMER_NAME: '' + DYN_PASSWORD: '' + DYN_USER_NAME: '' + EMAIL: s.hoffmann@hoffmann-hosting.de + EULA: 'Yes' + GANDI_API_KEY: '' + OVH_APPLICATION_KEY: '' + OVH_APPLICATION_SECRET: '' + OVH_CONSUMER_KEY: '' + PROVIDER: HTTP + PUBLIC_KEY_TYPE: RSA-2048 + RENEWAL_PERIOD_DAYS: '20' + RENEWAL_TIME: '12' + VULTR_API_KEY: '' + volumes: + - /var/lib/rancher:/var/lib/rancher + - zertifikate:/etc/letsencrypt + labels: + io.rancher.container.agent.role: environment + io.rancher.container.create_agent: 'true' + io.rancher.container.start_once: "true" + service: letsencrypt + +volumes: + grafana: + driver: rancher-nfs + influxdb: + driver: rancher-nfs + diff --git a/templates/monitor/1/rancher-compose.yml b/templates/monitor/1/rancher-compose.yml new file mode 100644 index 0000000..7df3e29 --- /dev/null +++ b/templates/monitor/1/rancher-compose.yml @@ -0,0 +1,39 @@ +version: '2' + +catalog: + + name: monitor + version: 0.2 + description: Docker Monitor + questions: + - variable: INFLUXDB_PASSWORD + label: Influxdb Password + required: true + type: password + - variable: GRAFANA_PASSWORD + label: Grafana Password + required: true + type: password + - variable: DOMAIN + default: your-domain.de + label: Domain + required: true + type: string + +services: + + influxdb: + scale: 1 + start_on_create: true + + grafana: + scale: 1 + start_on_create: true + lb_config: + port_rules: + - target_port: 3000 + hostname: ${DOMAIN} + + letsencrypt: + scale: 1 + start_on_create: true \ No newline at end of file diff --git a/templates/monitor/2/docker-compose.yml b/templates/monitor/2/docker-compose.yml new file mode 100644 index 0000000..db0b2f2 --- /dev/null +++ b/templates/monitor/2/docker-compose.yml @@ -0,0 +1,62 @@ +version: '2' + +services: + + cadvisor: + image: google/cadvisor:latest + volumes: + - /:/rootfs:ro + - /var/run:/var/run:rw + - /sys:/sys:ro + - /var/lib/docker/:/var/lib/docker:ro + - /dev/disk/:/dev/disk:ro + depends_on: + - influxdb + environment: + INFLUXDB_HOST: localhost + INFLUXDB_PORT: 8086 + INFLUXDB_NAME: cadvisor + INFLUXDB_USER: admin + INFLUXDB_PASS: ${INFLUXDB_PASSWORD} + command: -storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=db:8086 + links: + - influxdb:db + labels: + io.rancher.container.hostname_override: container_name + io.rancher.scheduler.global: 'true' + io.rancher.scheduler.affinity:host_label: global=yes + logging: + driver: syslog + + influxdb: + image: tutum/influxdb + volumes: + - influxdb:/data + environment: + PRE_CREATE_DB: cadvisor + ADMIN_USER: admin + INFLUXDB_INIT_PWD: ${INFLUXDB_PASSWORD} + labels: + io.rancher.container.hostname_override: container_name + + grafana: + image: grafana/grafana + environment: + GF_SERVER_ROOT_URL: https://${DOMAIN} + GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD} + volumes: + - grafana:/var/lib/grafana + links: + - influxdb:db + labels: + io.rancher.container.pull_image: always + rap.host: ${DOMAIN} + rap.le_host: ${DOMAIN} + rap.port: 3000 + +volumes: + grafana: + driver: local + influxdb: + driver: local + diff --git a/templates/monitor/2/rancher-compose.yml b/templates/monitor/2/rancher-compose.yml new file mode 100644 index 0000000..cec6c21 --- /dev/null +++ b/templates/monitor/2/rancher-compose.yml @@ -0,0 +1,31 @@ +version: '2' + +catalog: + + name: monitor + version: 0.3 + description: Docker Monitor + questions: + - variable: INFLUXDB_PASSWORD + label: Influxdb Password + required: true + type: password + - variable: GRAFANA_PASSWORD + label: Grafana Password + required: true + type: password + - variable: DOMAIN + default: your-domain.de + label: Domain + required: true + type: string + +services: + + influxdb: + scale: 1 + start_on_create: true + + grafana: + scale: 1 + start_on_create: true \ No newline at end of file diff --git a/templates/monitor/README.md b/templates/monitor/README.md new file mode 100644 index 0000000..e5d6171 --- /dev/null +++ b/templates/monitor/README.md @@ -0,0 +1,5 @@ +# Monitor + +todo + + diff --git a/templates/monitor/catalogIcon-monitor.svg b/templates/monitor/catalogIcon-monitor.svg new file mode 100644 index 0000000..50c06e2 --- /dev/null +++ b/templates/monitor/catalogIcon-monitor.svg @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/monitor/config.yml b/templates/monitor/config.yml new file mode 100644 index 0000000..0c4b111 --- /dev/null +++ b/templates/monitor/config.yml @@ -0,0 +1,6 @@ +name: monitor +description: Dockker Monitoring +version: 0.2 +category: Monitoring +projectURL: none +