In advantage to dalim-it/docker-images -> kayako
A PHP-FPM container for Kayako built on top of php:5.6-fpm-alpine. All needed PHP extensions are included as well as a PHP cache accelerator (opcache).
This image is not designed to work in standalone mode.
Tagname | Description | Dockerfile |
---|---|---|
latest | All needed PHP extensions with a PHP cache accelerator (opcache). | master |
postfix | Everything in latest plus a customisable postfix server. | postfix |
Create a Dockerfile to COPY
your own Kayako's files into /srv/web
or simply use a --volume
.
Recommended configuration:
php:
build:
context: .
dockerfile: Dockerfile-php
external_links:
- mysql:mysql
volumes:
- /path_to_logs:/srv/web/__swift/logs
- /path_to_files:/srv/web/__swift/files
- /path_to_geoip:/srv/web/__swift/geoip
restart: always
network_mode: "default"
nginx:
build:
context: .
dockerfile: Dockerfile-nginx
links:
- php:php
volumes_from:
- php
restart: always
network_mode: "default"
If you want to customise your PHP configuration, you just have to COPY
your .ini
file into /usr/local/etc/php/conf.d/
. It will override the default configuration.
There is few environment variables to configure the postfix server, feel free to ask me for more settings or make a pull request.
Variable name | Documentation |
---|---|
RELAY_HOST | relayhost |
ALWAYS_BCC | always_bcc |
HEADER_CHECKS | header_checks |
For more explanations please refer to Kayako and PHP documentation.