-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-mongo-replica-local.yml
96 lines (92 loc) · 2.38 KB
/
docker-compose-mongo-replica-local.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
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
---
version: '3.8'
services:
pmm-server:
image: ${PMM_SERVER_IMAGE:-perconalab/pmm-server:dev-latest}
container_name: pmm-server
ports:
- "80:80"
- "443:443"
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1/ping"]
interval: 3s
timeout: 2s
retries: 20
environment:
- PMM_DEBUG=1
- PERCONA_TEST_PLATFORM_ADDRESS=https://check-dev.percona.com:443
- PERCONA_TEST_PLATFORM_PUBLIC_KEY=RWTg+ZmCCjt7O8eWeAmTLAqW+1ozUbpRSKSwNTmO+exlS5KEIPYWuYdX
- PERCONA_TEST_VERSION_SERVICE_URL=https://check-dev.percona.com/versions/v1
pmm-client:
image: ${PMM_CLIENT_IMAGE:-perconalab/pmm-client:dev-latest}
container_name: pmm-client
ports:
- "7778:7777"
depends_on:
pmm-server:
condition: service_healthy
environment:
- PMM_AGENT_SETUP=1
- PMM_AGENT_SERVER_ADDRESS=pmm-server
- PMM_AGENT_SERVER_USERNAME=admin
- PMM_AGENT_SERVER_PASSWORD=${ADMIN_PASSWORD:-admin}
- PMM_AGENT_PORTS_MIN=41000
- PMM_AGENT_PORTS_MAX=41500
- PMM_AGENT_SERVER_INSECURE_TLS=1
- PMM_AGENT_CONFIG_FILE=config/pmm-agent.yaml
- PMM_AGENT_SETUP_NODE_NAME=${PMM_AGENT_SETUP_NODE_NAME:-pmm-client-container}
- PMM_AGENT_SETUP_FORCE=1
- PMM_AGENT_SETUP_NODE_TYPE=container
- PMM_AGENT_PRERUN_SCRIPT=${PMM_AGENT_PRERUN_SCRIPT}
restart: on-failure
mongors1:
container_name: mongors1
image: 'percona/percona-server-mongodb:4.4'
ports:
- 27027:27027
restart: always
volumes:
- '.:/root/pmm-agent'
command:
- --profile=2
entrypoint:
- /usr/bin/mongod
- '--bind_ip_all'
- '--port'
- '27027'
- '--replSet'
- rs0
mongors2:
container_name: mongors2
image: 'percona/percona-server-mongodb:4.4'
ports:
- 27028:27028
restart: always
volumes:
- '.:/root/pmm-agent'
command:
- --profile=2
entrypoint:
- /usr/bin/mongod
- '--bind_ip_all'
- '--port'
- '27028'
- '--replSet'
- rs0
mongors3:
container_name: mongors3
image: 'percona/percona-server-mongodb:4.4'
ports:
- 27029:27029
restart: always
volumes:
- '.:/root/pmm-agent'
command:
- --profile=2
entrypoint:
- /usr/bin/mongod
- '--bind_ip_all'
- '--port'
- '27029'
- '--replSet'
- rs0