Deployment
Required configurations
Not all features are active by default, and therefore don't necessarily need to be configured.
Others, on the other hand, do require configuration during deployment.
These features are as follows:
- Database configuration
Example
The most basic deployment should include an image and the environment variables for the database connection.
If necessary, add configuration elements such as port forwarding, container name, hostname, etc.
docker-compose.yaml | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Optional configurations
Deployment of the containerized application is fully configurable via environment variables.
Each feature therefore has a variable capable of enabling or disabling it, and customizing its configuration.
Mails
Example
docker-compose.yaml | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Info
To enable mail sending via an external server, the ZNUNY_MAILING_TYPE
variable must be set to external
.
Otherwise, this variable will be set to internal
and all other mail configuration variables will be ignored when the application will be configured.
Logs
Example
docker-compose.yaml | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Info
By default, the application Znuny uses Rsyslog to manage its logging.
However, with this method, the amount of logging is often low or non-existent.
The variable ZNUNY_LOG_PATH
allows you to dispense with Rsyslog for log management.
The application will simply write to a single log file, whose path can be customized.
The Znuny application does not write all its activity in its log files.
Only actions performed via the application's command line are logged.
Daemon and cron logs are output directly in the standard json container output.
Apache
Example
docker-compose.yaml | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Info
If required, you can set up a web domain for the virtualhost of the Apache2 server.
This can be especially useful if you want to have a record of it in the server logs.
If no domain is specified, then the Apache2 server will be configured with a "default"
value for the virtualhost's ServerNmae option.
If required, you can also configure request rewriting rules directly in the virtualhost configuration.
Local user
Example
docker-compose.yaml | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Info
Local administrator user configuration only works if LDAP agent configurations are not specified.
If agent LDAP configurations are defined, those of the local administrator user become obsolete.
Addons
Example
docker-compose.yaml | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Info
Extensions must be formatted with the repository as well as their name. The ZNUNY_ADDONS
variable supports a comma-separated list.
The example above supports the following extensions :
- https://download.znuny.org/releases/packages:Survey
- https://addons.znuny.com/public:Znuny-HealthStatus
Authentications
Example
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 |
|