1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
| version: '3' services: portainer: image: portainer/portainer-ce:2.9.3 volumes: - /var/run/docker.sock:/var/run/docker.sock - ./portainer:/data labels: - "traefik.enable=true" - "traefik.http.routers.frontend.rule=Host(`portainer.cloud.tencent.com`)" - "traefik.http.services.frontend.loadbalancer.server.port=9000" - "traefik.http.routers.frontend.service=frontend"
- "traefik.http.routers.edge.rule=Host(`portainer.cloud.tencent.com`)" - "traefik.http.services.edge.loadbalancer.server.port=8000" - "traefik.http.routers.edge.service=edge" cadvisor: image: google/cadvisor:latest container_name: cadvisor volumes: - /:/rootfs:ro - /var/run:/var/run:rw - /sys:/sys:ro - /var/lib/docker/:/var/lib/docker:ro labels: - "traefik.enable=true" - "traefik.http.routers.cadvisor.rule=Host(`cadvisor.cloud.tencent.com`)" - "traefik.http.services.cadvisor.loadbalancer.server.port=8080" prometheus: image: prom/prometheus
volumes: - ./prometheus:/etc/prometheus - ./prometheus/data:/prometheus command: - '--storage.tsdb.retention.time=30d' - '--config.file=/etc/prometheus/prometheus.yml' labels: - "traefik.enable=true" - "traefik.http.routers.prometheus.rule=Host(`prometheus.cloud.tencent.com`)" - "traefik.http.services.prometheus.loadbalancer.server.port=9090" extra_hosts: - "prometheus.cloud.tencent.com:172.17.0.1" - "cadvisor.cloud.tencent.com:172.17.0.1" - "node-exporter.cloud.tencent.com:172.17.0.1" influxdb: image: influxdb volumes: - ./influxdb:/var/lib/influxdb labels: - "traefik.enable=true" - "traefik.http.routers.influxdb.rule=Host(`influxdb.cloud.tencent.com`)" - "traefik.http.services.influxdb.loadbalancer.server.port=8086" extra_hosts: - "prometheus.cloud.tencent.com:172.17.0.1" - "influxdb.cloud.tencent.com:172.17.0.1" grafana: image: grafana/grafana volumes: - ./grafana:/var/lib/grafana labels: - "traefik.enable=true" - "traefik.http.routers.grafana.rule=Host(`grafana.cloud.tencent.com`)" - "traefik.http.services.grafana.loadbalancer.server.port=3000" extra_hosts: - "prometheus.cloud.tencent.com:172.17.0.1" - "influxdb.cloud.tencent.com:172.17.0.1" node-exporter: image: prom/node-exporter container_name: node-exporter command: - '--path.rootfs=/host' volumes: - '/:/host:ro,rslave' pid: host labels: - "traefik.enable=true" - "traefik.http.routers.node-exporter.rule=Host(`node-exporter.cloud.tencent.com`)" - "traefik.http.services.node-exporter.loadbalancer.server.port=9100"
|