-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yaml
61 lines (59 loc) · 1.6 KB
/
docker-compose.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
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
version: '3'
services:
pmm-server:
image: ${PMM_SERVER_IMAGE}:${PMM_VERSION}
hostname: pmm-server
container_name: "${PMM_SERVER_NAME}"
restart: always
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
ports:
- "${PMM_HTTP_PORT}:80"
- "${PMM_HTTPS_PORT}:443"
- "${CLICKHOUSE_PORT}:9000"
- "${CLICKHOUSE_PORT_HTTP}:8123"
volumes:
- pmm-server-data:/srv
pmm-client:
image: ${PMM_CLIENT_IMAGE}:${PMM_VERSION}
hostname: pmm-client
container_name: "${PMM_CLIENT_NAME}"
restart: always
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
depends_on:
- pmm-server
volumes:
- ${PMM_AGENT_CONFIG_FILE}:/etc/pmm-agent.yaml
- pmm-client-data:/srv
environment:
- PMM_AGENT_CONFIG_FILE=/etc/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
- PMM_AGENT_SETUP=false
mongodb:
image: "${MONGO_IMAGE}:${MONGO_TAG}"
container_name: "${PMM_MONGO_NAME}"
environment:
MONGO_INITDB_DATABASE: admin
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
volumes:
- ./setup/mongo/init.js:/docker-entrypoint-initdb.d/init.js:ro
- mongodb-data:/data/db
- ./setup/mongo/mongod.conf:/etc/mongod.conf
ports:
- ${MONGO_PORT}:27017
command: [ "--config", "/etc/mongod.conf" ]
volumes:
pmm-server-data:
pmm-client-data:
mongodb-data: