-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (52 loc) · 1.26 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3'
services:
mysql:
image: mariadb:10
ports:
- "13306:3306"
volumes:
- "mysql_data:/var/lib/mysql"
- "./log:/log"
- "./infra/local/mysql/conf.d:/etc/mysql/conf.d"
- "./infra/local/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d"
environment:
MYSQL_ROOT_PASSWORD: pass
MYSQL_USER: user
MYSQL_PASSWORD: pass
pmm-server:
image: percona/pmm-server:2
container_name: pmm-server
ports:
- "443:443"
volumes:
- "pmm-data:/srv"
profiles:
- pmm
pmm-client:
image: percona/pmm-client:2
volumes:
- "pmm-client-data:/srv"
- "./log:/log" # mysql と共有
- ./tmp:/config
environment:
- PMM_AGENT_CONFIG_FILE=/config/pmm-agent.yaml
profiles:
- pmm
pmm-client-setup:
image: percona/pmm-client:2
volumes:
- "pmm-client-data:/srv"
- ./tmp:/config
environment:
- PMM_AGENT_CONFIG_FILE=/config/pmm-agent.yaml
- PMM_AGENT_SERVER_USERNAME=admin
- PMM_AGENT_SERVER_PASSWORD=admin
- PMM_AGENT_SERVER_ADDRESS=pmm-server:443
- PMM_AGENT_SERVER_INSECURE_TLS=true
profiles:
- tmp
entrypoint: pmm-agent setup
volumes:
mysql_data:
pmm-data:
pmm-client-data: