diff --git a/examples/pilot/compose.yaml b/examples/pilot/compose.yaml index dbabd17..b0afc6f 100644 --- a/examples/pilot/compose.yaml +++ b/examples/pilot/compose.yaml @@ -110,6 +110,7 @@ services: LICENSE_KEY: ${LICENSE_KEY} PORT: 8080 + UNIX_SOCKET: /gmonit/sockets/collector.sock CLICKHOUSE_URL: http://clickhouse:8123 CLICKHOUSE_USER: gmonit CLICKHOUSE_KEY: ${CLICKHOUSE_PASSWORD} @@ -145,6 +146,7 @@ services: - type: image source: cr.yandex/crpih7d63vpcj5dfn8jj/geoip-db:latest target: /gmonit/geoip + - sockets:/gmonit/sockets <<: *logging nginx: @@ -154,6 +156,7 @@ services: - ./ssl:/gmonit/ssl - ./nginx/templates:/etc/nginx/templates - ./nginx/nginx.conf:/etc/nginx/nginx.conf + - sockets:/gmonit/sockets ports: - 80:80 - 443:443 @@ -210,3 +213,5 @@ services: NRIA_SELF_INSTRUMENTATION_APM_HOST: ${COLLECTOR_DOMAIN} SSL_CERT_FILE: ${CA_FILE} <<: *logging +volumes: + sockets: diff --git a/examples/pilot/nginx/templates/service.conf.template b/examples/pilot/nginx/templates/service.conf.template index c391f10..58f8728 100644 --- a/examples/pilot/nginx/templates/service.conf.template +++ b/examples/pilot/nginx/templates/service.conf.template @@ -1,6 +1,6 @@ map $host $backend { ${GRAFANA_DOMAIN} grafana:3000; - ${COLLECTOR_DOMAIN} collector:8080; + ${COLLECTOR_DOMAIN} unix:/gmonit/sockets/collector.sock; } server {