implemented compose by url, parse, local yaml.
This commit is contained in:
1 parent
53695f4fff
commit
784fff8faf
218 files changed
+2271
-640
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# Upstream Snapshot
|
||||
|
||||
This directory stores copied upstream reference files for the `alloy` role.
|
||||
|
||||
See `docs/upstream-sources.yml` for repository URLs, refs, README paths, Compose paths, and verification status.
|
||||
|
||||
Snapshot files are reference material only. Deployments are generated from this role's `templates/` directory.
|
||||
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
grafana-alloy:
|
||||
image: grafana/alloy:latest
|
||||
container_name: grafana-alloy
|
||||
ports:
|
||||
- '12345:12345'
|
||||
volumes:
|
||||
# mount config file
|
||||
- './grafana/alloy/config.alloy:/etc/alloy/config.alloy'
|
||||
# give access to running docker containers for discovery.docker
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
# give access to docker's log files directory (optional)
|
||||
- /var/lib/docker/containers:/var/lib/docker/containers:ro
|
||||
environment:
|
||||
# pass environment variables for config.alloy
|
||||
GRAFANA_LOKI_URL: ${GRAFANA_LOKI_URL}
|
||||
GRAFANA_LOKI_USERNAME: ${GRAFANA_LOKI_USERNAME}
|
||||
# GRAFANA_CLOUD_API_KEY: ${GRAFANA_CLOUD_API_KEY}
|
||||
command:
|
||||
- run
|
||||
- --server.http.listen-addr=0.0.0.0:12345
|
||||
- --storage.path=/var/lib/alloy/data
|
||||
- /etc/alloy/config.alloy
|
||||
Reference in new issue
Block a user