Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/pilot/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -145,6 +146,7 @@ services:
- type: image
source: cr.yandex/crpih7d63vpcj5dfn8jj/geoip-db:latest
target: /gmonit/geoip
- sockets:/gmonit/sockets
<<: *logging

nginx:
Expand All @@ -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
Expand Down Expand Up @@ -210,3 +213,5 @@ services:
NRIA_SELF_INSTRUMENTATION_APM_HOST: ${COLLECTOR_DOMAIN}
SSL_CERT_FILE: ${CA_FILE}
<<: *logging
volumes:
sockets:
2 changes: 1 addition & 1 deletion examples/pilot/nginx/templates/service.conf.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
map $host $backend {
${GRAFANA_DOMAIN} grafana:3000;
${COLLECTOR_DOMAIN} collector:8080;
${COLLECTOR_DOMAIN} unix:/gmonit/sockets/collector.sock;
}

server {
Expand Down