forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
36 lines (35 loc) · 1.16 KB
/
docker-compose.yml
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
---
version: "3"
services:
pmm-server:
container_name: pmm-server
image: perconalab/pmm-server:dev-container
volumes:
- "./:/workspace"
- "./public:/usr/share/grafana/public"
- "./conf/grafana.local-dev.ini:/usr/share/grafana/conf/defaults.ini"
ports:
- 80:80
- 443:443
environment:
- PMM_DEBUG=1
- PERCONA_PORTAL_URL=https://portal-dev.percona.com
- PERCONA_TEST_PLATFORM_ADDRESS=https://check-dev.percona.com:443
- PERCONA_TEST_PLATFORM_PUBLIC_KEY=RWTkF7Snv08FCboTne4djQfN5qbrLfAjb8SY3/wwEP+X5nUrkxCEvUDJ
mysql:
image: percona:5.7.30
platform: linux/amd64
container_name: pmm-agent_mysql
command: >
--sql-mode="ANSI_QUOTES"
--performance-schema --innodb_monitor_enable=all
--slow_query_log --log_slow_rate_limit=1 --log_slow_admin_statements --log_slow_slave_statements --slow_query_log_file=/mysql/slowlogs/slow.log --long_query_time=0
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=ps
- MYSQL_USER=pmm-agent
- MYSQL_PASSWORD=pmm%*&agent-password
- UMASK=0777 # for slowlog file
volumes:
- ./testdata/mysql:/mysql