-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose-cloud.yaml
34 lines (32 loc) · 1.14 KB
/
docker-compose-cloud.yaml
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
version: "3.8"
services:
quickpizza:
# The QUICKPIZZA_IMAGE env. variable enables the use of a locally built image,
# created with `docker build -t image_name .`
image: ${QUICKPIZZA_IMAGE:-ghcr.io/grafana/quickpizza-local:latest}
ports:
- "3333:3333"
environment:
QUICKPIZZA_OTLP_ENDPOINT: http://agent:4318
QUICKPIZZA_TRUST_CLIENT_TRACEID: 1
# must be set with an .env file
QUICKPIZZA_CONF_FARO_URL: "${QUICKPIZZA_CONF_FARO_URL}"
QUICKPIZZA_PYROSCOPE_ENDPOINT: "${QUICKPIZZA_CONF_PYROSCOPE_ENDPOINT}"
agent:
image: grafana/agent:latest
volumes:
- "./contrib/agent-cloud.river:/grafana-agent.river:Z"
- "${DOCKER_SOCKET:-/var/run/docker.sock}:/var/run/docker.sock"
command:
["run", "/grafana-agent.river", "--server.http.listen-addr=0.0.0.0:12345"]
ports:
- "12345:12345"
environment:
AGENT_MODE: flow
QUICKPIZZA_HOST: quickpizza:3333
# must be set with an .env file
GRAFANA_CLOUD_TOKEN: "${GRAFANA_CLOUD_TOKEN}"
# must be set with an .env file
GRAFANA_CLOUD_STACK: "${GRAFANA_CLOUD_STACK}"
depends_on:
- quickpizza