Commit 0b12072d authored by Serhey's avatar Serhey

Zabbix configurations

parent 43abc755
......@@ -11,6 +11,9 @@ name: app
dependencies:
nodejs:
yarn: "*"
php:
wizaplace/php-fpm-status-cli: "^1.0"
gordalina/cachetool: "^5.0"
# The type of the application to build.
type: php:7.3
......@@ -34,6 +37,11 @@ relationships:
#redissession: 'redissession:redis'
# If you wish to use solr, uncomment this relationship and the corresponding service in .platform/services.yaml
solr: 'solrsearch:collection1'
# Zabbix relationships
database_zabbix: mysqldb:zabbix
status_database: mysqldb:user
status_solr: solrsearch:collection1
status_redis: rediscache:redis
variables:
php:
......@@ -49,6 +57,7 @@ variables:
# Applications that open many PHP files, such as Symfony projects, should use at least these values
realpath_cache_size: 4096K
realpath_cache_ttl: 600
max_input_time: 300
env:
# We disable Symfony Proxy (CacheKernel), as we rather use Varnish
APP_HTTP_CACHE: 0
......@@ -64,6 +73,11 @@ variables:
# The configuration of app when it is exposed to the web.
web:
locations:
/zabbix:
root: zabbix/src/zabbix/ui
passthru: true
scripts: true
index: [index.php]
"/":
# The public directory of the app, relative to its root.
root: "public"
......@@ -111,6 +125,9 @@ mounts:
# # Platform.sh Staff: This MUST be shared on cluster, all others SHOULD be local for performance reasons
# source: local
# source_path: dfsdata
zabbix/configs:
source: local
source_path: zabbix-configs
# The hooks that will be performed when the package is deployed.
hooks:
......@@ -133,6 +150,10 @@ hooks:
composer install --no-dev --prefer-dist --no-progress --no-interaction --optimize-autoloader
curl -sS https://platform.sh/cli/installer | php
/app/zabbix/scripts/install-libevent.sh
/app/zabbix/scripts/install-zabbix.sh
/app/zabbix/scripts/install-composer-ui.sh
# Deploy hook, access to services & done once (per cluster, not per node), only mounts are writable at this point
# Note: Http traffic is paused while this is running, so for prod code this should finish as fast as possible, < 30s
deploy: |
......@@ -174,6 +195,10 @@ hooks:
# even so if your change only affected certain subset of content, ideally you should only clear specific tags:
##bin/console fos:httpcache:invalidate:tag l44 c33 ct2 ...
/app/zabbix/scripts/update-configs.sh
/app/zabbix/scripts/install-db.sh
/app/zabbix/scripts/start-zabbix.sh
# Post deploy hook, like deploy but after being deployed and live, for deploy tasks we can do asynchronously
# Tip: As this is running while web is running, and it's async, avoid doing anything like cache clearing that affects web requests here.
#post_deploy: |
......@@ -208,3 +233,7 @@ runtime:
# configuration:
# server_id: 'xxxx-xxx-xxx-xxx-xxxx'
# server_token: 'xxxx'
- ctype
- xmlreader
- xmlwriter
- gettext
......@@ -6,6 +6,13 @@
# However it is possible to enable this for anonymous traffic when backend sends expiry headers.
enabled: false
https://{default}/zabbix/:
type: upstream
upstream: app:http
cache:
enabled: false
ssi:
enabled: false
"https://www.{default}/":
type: redirect
to: "https://{default}/"
......@@ -11,6 +11,7 @@ mysqldb:
- main
# Uncomment if you want to store dfs tables in a separate database:
#- dfs
- zabbix
endpoints:
user:
default_schema: main
......@@ -21,6 +22,10 @@ mysqldb:
# default_schema: dfs
# privileges:
# dfs: admin
zabbix:
default_schema: zabbix
privileges:
zabbix: admin
# For use by Symfony Cache (used by eZ Platform SPI Persistence Cache)
rediscache:
......
name: varnish-stats
size: XS
type: php:7.4
disk: 128
build:
flavor: none
resources:
base_memory: 64
memory_ratio: 128
relationships:
varnish: varnish:http+stats
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment