Sign inSign up

dalimit/kayako

By dalimit

Updated over 8 years ago

Standalone container to run Kayako built on top of alpine Linux.

Image
0

464

dalimit/kayako repository overview

Dockerfile

A standalone container to run Kayako built on top of alpine Linux.

This image contains:

  • Nginx web server with PHP FPM
  • Needed PHP extensions to run Kayako
  • PHP cache accelerator (opcache)
  • Postfix server for advanced mailing needs

Usage

Create a Dockerfile to COPY your own Kayako's files into /srv/web.

Here is my usual working stack:

version: '3'
services:
    kayako:
        build:
            context: .
            dockerfile: Dockerfile
        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
        environment:
            KAYAKO_DB_HOSTNAME: mysql
            KAYAKO_DB_USERNAME: kayako_user
            KAYAKO_DB_PASSWORD: kayako_pwd
            KAYAKO_DB_NAME: kayako
    mysql:
        image: mysql:5.7
        volumes:
            - /path_to_db_data:/var/lib/mysql

Kayako Configuration

It is done via environment variable

Variable nameDescription
KAYAKO_BASENAMEBase path name (defaults to index.php?)
KAYAKO_DB_HOSTNAMEDatabase hostname
KAYAKO_DB_USERNAMEDatabase username
KAYAKO_DB_PASSWORDDatabase password
KAYAKO_DB_NAMEDatabase schema name
KAYAKO_DB_PORTDatabase port (defaults to 3306)

PHP Configuration

If you want to customise your PHP configuration, you want to COPY your .ini file into /usr/local/etc/php/conf.d/. It will override the default configuration.

Postfix configuration

There is few environment variables to configure the postfix server, feel free to ask for more settings.

Variable nameDescription
POSTFIX_ENABLESet to false if you don't want to start postfix server
RELAY_HOSTrelayhost
SMTP_USE_TLSsmtp_use_tls
ALWAYS_BCCalways_bcc
HEADER_CHECKSheader_checks
MSG_SIZE_LIMITmessage_size_limit
SMTP authentication using SASL

The followings only apply if variable RELAY_HOST is used:

Variable nameDescription
SMTP_AUTH_HOSTUsed to generate smtp_sasl_password_maps (defaults to $RELAY_HOST)
SMTP_AUTH_USERUsed to generate smtp_sasl_password_maps
SMTP_AUTH_PASSWORDUsed to generate smtp_sasl_password_maps
SMTP_AUTH_MECHANISMsmtp_sasl_mechanism_filter (defaults to plain,login)
SMTP_AUTH_SECURITY_OPTIONSsmtp_sasl_security_options (defaults to noanonymous)

Documentation

For more explanations please refer to Kayako, nginx or PHP documentations.

Tag summary

Content type

Image

Digest

Size

36.6 MB

Last updated

over 8 years ago

docker pull dalimit/kayako