Image opencontentcoop/ezpublish
Image opencontentcoop/ezpublish-nginx
This repository is used to create e Docker base-image for projects developed by Opencontent using Ez Publish.
To better understand how we use this repo, please check some project that use it as base-image:
Basically we use the base image to install all the OS dependencies of Ez, the next step we add to Dockerfile is commonly add the composer.* files for the specific project.
The nginx image is a simple alpine-based nginx with a virtualhost configured for ez publish
The image uses also nginx-prometheus-exporter and expose
nginx metrics in prometheus format on /metrics
url, check the official Grafana dashboard to show these metrics
Variable | Type | Default value | Description |
---|---|---|---|
EZ_ROOT | String | /var/www/html | Root of EZ Filesystem |
EZ_INSTANCE | String | prototipo | If set change the value of '$instance' variable in nginx virtulahost |
NO_FORCE_CONTAINER_REFRESH | Boolean | true | If set to true |
PROMETHEUS_DISABLE | Boolean | none | If set to TRUE disable the prometheus monitoring |
DEBUG | Boolean | none | If set to TRUE enable debugging of bash scripts |
BEHAT_SELENIUM_HOST | String | none | BeHat Selenium host |
BEHAT_WEB_HOST | String | none | BeHat Web Host |
PHP_INI_ENV_[NAME] | Any variable with prefix PHP_INI_ENV is injected in ${PHP_INI_DIR}/conf.d/zzz_custom_settings.ini |
There are also some variables coming from the prometheus exports, but they are not useful in this nginx setup, where the configuration of nginx is hardcoded. For more details check: https://github.com/nginxinc/nginx-prometheus-exporter
Add your entrypoint customization scripts to /docker-entrypoint-initdb.d/
, any sh file there
is executed at some point of docker container bootstrap