-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
133 lines (127 loc) · 4.8 KB
/
docker-compose.yml
File metadata and controls
133 lines (127 loc) · 4.8 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
services:
pmm-server:
profiles:
- pmm
image: ${PMM_CONTAINER:-perconalab/pmm-server:3-dev-container}
platform: linux/amd64
container_name: pmm-server
hostname: pmm-server
networks:
- ${NETWORK:-default}
environment:
- AWS_ACCESS_KEY=${AWS_ACCESS_KEY:-}
- AWS_SECRET_KEY=${AWS_SECRET_KEY:-}
- REVIEWDOG_GITHUB_API_TOKEN=${REVIEWDOG_GITHUB_API_TOKEN:-}
- PMM_RELEASE_PATH=/root/go/bin
- PMM_ENABLE_ACCESS_CONTROL=${PMM_ENABLE_ACCESS_CONTROL:-0}
- PMM_WATCHTOWER_HOST=${PMM_WATCHTOWER_HOST:-http://watchtower:8080}
- PMM_WATCHTOWER_TOKEN=${PMM_WATCHTOWER_TOKEN:-INSECURE_TOKEN}
- PMM_ENABLE_NOMAD=${PMM_ENABLE_NOMAD:-0}
- PMM_PUBLIC_ADDRESS=${PMM_PUBLIC_ADDRESS:-localhost}
- PMM_RELEASE_VERSION=3.6.0
- GO_VERSION=1.25.x
# - PMM_ENABLE_INTERNAL_PG_QAN=${PMM_ENABLE_INTERNAL_PG_QAN:-1}
# - PMM_DISTRIBUTION_METHOD=${PMM_DISTRIBUTION_METHOD:-docker}
# - PMM_DEV_UPDATE_DOCKER_IMAGE=${PMM_DEV_UPDATE_DOCKER_IMAGE:-}
# - PMM_DEV_PERCONA_PLATFORM_ADDRESS=https://check.localhost
# - PMM_DEV_PERCONA_PLATFORM_INSECURE=1
# - PMM_DEV_PERCONA_PLATFORM_PUBLIC_KEY=<public key>
# - PMM_DEV_TELEMETRY_INTERVAL=10s
# - PMM_DEV_TELEMETRY_DISABLE_START_DELAY=1
# - PMM_DEV_TELEMETRY_RETRY_BACKOFF=10s
# - PMM_CLICKHOUSE_ADDR=127.0.0.1:9000
# - PMM_CLICKHOUSE_DATABASE=pmm
# - PMM_CLICKHOUSE_USER=default
# - PMM_CLICKHOUSE_PASSWORD=<password>
# - PMM_CLICKHOUSE_IS_CLUSTER=1
# - PMM_CLICKHOUSE_CLUSTER_NAME=pmmclickhouse
# - PMM_DEBUG=1
# - PMM_DEV_ADVISOR_CHECKS_FILE=/srv/checks/local-checks.yml
# - PMM_POSTGRES_ADDR=pg
# - PMM_POSTGRES_DBNAME=pmm-managed
# - PMM_POSTGRES_USERNAME=pmm-managed
# - PMM_POSTGRES_DBPASSWORD=<password>
# - PMM_POSTGRES_SSL_MODE=verify-full
# - PMM_POSTGRES_SSL_CA_PATH=/tmp/certs/root.crt
# - PMM_POSTGRES_SSL_KEY_PATH=/tmp/certs/pmm-managed.key
# - PMM_POSTGRES_SSL_CERT_PATH=/tmp/certs/pmm-managed.crt
# - PMM_DISABLE_BUILTIN_POSTGRES=1
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
- GF_RENDERING_CALLBACK_URL=https://pmm-server:8443/graph/
# - GF_DATABASE_SSL_MODE=verify-full
# - GF_DATABASE_CA_CERT_PATH=/tmp/certs/root.crt
# - GF_DATABASE_CLIENT_KEY_PATH=/tmp/certs/grafana.key
# - GF_DATABASE_CLIENT_CERT_PATH=/tmp/certs/grafana.crt
# for delve
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
# see https://github.com/golang/go/wiki/LinuxKernelSignalVectorBug#what-to-do
ulimits:
memlock: 67108864
ports:
- ${PMM_PORT_HTTPS:-443}:8443
# For headless delve
- ${PMM_PORT_DELVE:-2345}:2345
# PG
- ${PMM_PORT_PG:-5432}:5432
# VM
- ${PMM_PORT_VM:-9090}:9090
# CH
- ${PMM_PORT_CH_TCP:-19000}:9000
- ${PMM_PORT_CH_HTTP:-8123}:8123
volumes:
- ./:/root/go/src/github.com/percona/pmm
- ./Makefile.devcontainer:/root/go/src/github.com/percona/pmm/Makefile:ro # substitute Makefile in devcontainer
- ./managed/testdata/updater/:/home/pmm/.config/systemd/user/
- ./dev/clickhouse-config.xml:/etc/clickhouse-server/config.xml:ro # Dev clickhouse config for backups/restore
# caching
- go-modules:/root/go/pkg/mod
- go-cache:/root/.cache
- srv:/srv
# mount advisor files for easy development
- ./managed/data/advisors/:/usr/local/percona/advisors/
- ./managed/data/checks/:/usr/local/percona/checks/
- ./managed/data/alerting-templates/:/usr/local/percona/alerting-templates/
# grafana
# - "../grafana:/workspace"
# - "../grafana/public:/usr/share/grafana/public"
# - "../grafana/conf/grafana.local-dev.ini:/usr/share/grafana/conf/defaults.ini"
# command: >
# bash -c "
# # script you want to run before entrypoint, e.g.
# bash /tmp/wait-for-it.sh -t 30 some-service:some-port --
# /opt/entrypoint.sh
# "
renderer:
image: grafana/grafana-image-renderer:latest
environment:
- RENDERING_VERBOSE_LOGGING=true
- RENDERING_DUMPIO=true
- IGNORE_HTTPS_ERRORS=true
- LOG_LEVEL=debug
networks:
- ${NETWORK:-default}
ports:
- 8081:8081
watchtower:
profiles:
- pmm
image: ${WATCHTOWER_IMAGE:-perconalab/watchtower}
container_name: watchtower
environment:
- WATCHTOWER_HTTP_LISTEN_PORT=8080
- WATCHTOWER_HTTP_API_UPDATE=1
- WATCHTOWER_HTTP_API_TOKEN=${PMM_WATCHTOWER_TOKEN:-INSECURE_TOKEN}
- WATCHTOWER_NO_RESTART=${WATCHTOWER_NO_RESTART:-0}
hostname: watchtower
networks:
- ${NETWORK:-default}
volumes:
- ${DOCKER_PATH:-/var/run/docker.sock}:/var/run/docker.sock
volumes:
go-modules:
go-cache:
srv: