forked from percona/pmm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request percona#2 from percona/consul
New version: switched to Consul, Nginx, added MongoDB
- Loading branch information
Showing
10 changed files
with
205 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
version: '2' | ||
|
||
services: | ||
pmm_data: | ||
pmm-data: | ||
build: . | ||
image: percona/pmm-server | ||
container_name: pmm_data | ||
container_name: pmm-data | ||
volumes: | ||
- /var/lib/mysql | ||
- /opt/prometheus/data | ||
- /opt/prometheus/targets | ||
- /opt/consul-data | ||
entrypoint: /bin/true | ||
|
||
pmm: | ||
pmm-server: | ||
build: . | ||
container_name: pmm | ||
container_name: pmm-server | ||
image: percona/pmm-server | ||
environment: | ||
- ADDRESS=192.168.56.107 | ||
ports: | ||
- "9001-9003:9001-9003" | ||
- "3000:3000" | ||
- "9090:9090" | ||
- "9001:9001" | ||
- "80:80" | ||
volumes_from: | ||
- pmm_data | ||
- pmm-data | ||
### EDIT WITH YOUR IP ### | ||
environment: | ||
- ADDRESS=192.168.56.107 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
user www-data; | ||
worker_processes 4; | ||
pid /run/nginx.pid; | ||
|
||
events { | ||
worker_connections 768; | ||
} | ||
|
||
http { | ||
sendfile on; | ||
tcp_nopush on; | ||
tcp_nodelay on; | ||
keepalive_timeout 65; | ||
types_hash_max_size 2048; | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
access_log /var/log/nginx/access.log; | ||
error_log /var/log/nginx/error.log; | ||
gzip on; | ||
server { | ||
listen *:80; | ||
server_name _; | ||
server_tokens off; | ||
root /opt/landing-page; | ||
|
||
# Grafana | ||
rewrite ^/graph$ /graph/; | ||
location /graph { | ||
proxy_pass http://localhost:3000; | ||
rewrite ^/graph/(.*) /$1 break; | ||
} | ||
|
||
# Prometheus | ||
location /prometheus { | ||
proxy_pass http://localhost:9090; | ||
} | ||
|
||
# Consul UI | ||
location /consul/ { | ||
proxy_pass http://localhost:8500/ui/; | ||
} | ||
|
||
# Consul API | ||
location /v1/ { | ||
proxy_pass http://localhost:8500/v1/; | ||
} | ||
|
||
# QAN App | ||
location /qan { | ||
alias /opt/qan-app; | ||
} | ||
} | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.