Zammad Docker images for docker-compose
Zammad is a web based open source helpdesk/ticket system with many features to manage customer communication via several channels like telephone, facebook, twitter, chat and e-mails. It is distributed under the GNU AFFERO General Public License (AGPL). Do you receive many e-mails and want to answer them with a team of agents? You're going to love Zammad!
This repo is meant to be the starting point for somebody who likes to use dockerized multi-container Zammad in production.
https://docs.zammad.org/en/latest/install-docker-compose.html
In environments with more then one web applications it is necessary to use a reverse proxy to route connections to port 80 and 443 to the right application. To run Zammad behind a revers proxy, we provide
docker-compose.proxy-example.ymlas a starting point.
./.examples/proxy/docker-compose.proxy-example.ymlto your own configuration, e.g.
./docker-compose.prod.yml
cp ./.examples/proxy/docker-compose.proxy-example.yml ./docker-compose.prod.yml
VIRTUAL_HOSTand the name of the external network in
./docker-compose.prod.ymlto fit your environment.
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
See
.examples/proxy/docker-compose.ymlfor an example proxy project.
Like this, you can add your
docker-compose.prod.ymlto a branch of your Git repository and stay up to date by merging changes to your branch.
RANCHER_URL=http://RANCHER_HOST:8080 rancher-compose --env-file=.env up
Elasticsearch is an optional, but strongly recommended dependency for Zammad. More details can be found in the documentation. There are however certain scenarios when running without Elasticsearch may be desired, e.g. for very small teams, for teams with limited budget or as a temporary solution for an unplanned Elasticsearch downtime or planned cluster upgrade.
Elasticsearch is enabled by default in the example
docker-compose.ymlfile. It is also by default required to run the "zammad-init" command. Disabling Elasticsearch is possible by setting a special environment variable:
ELASTICSEARCH_ENABLED=falsefor the
zammad-initcontainer and removing all references to Elasticsearch everywhere else: the
zammad-elasticsearchcontainer, it's volume and links to it.
We've updated the Elasticsearch image from 5.6 to 7.6. As there is no direct upgrade path we have to delete all Elasticsearch indices and rebuild them. Do the following to empty the ES docker volume:
docker-compose stop set -o pipefail DOCKER_VOLUME="$(docker volume inspect zammaddockercompose_elasticsearch-data | grep Mountpoint | sed -e 's#.*": "##g' -e 's#",##')/*" echo "${DOCKER_VOLUME}" #check this is a valid docker volume path! if not do not proceed or you might lose data! rm -r $(docker volume inspect zammaddockercompose_elasticsearch-data | grep Mountpoint | sed -e 's#.*": "##g' -e 's#",##')/* docker-compose start
To workaround the changes in the PostgreSQL 9.6 container do the following:
docker-compose start docker exec -it zammaddockercompose_zammad-postgresql_1 bash psql --username postgres --dbname zammad_production CREATE USER zammad; ALTER USER zammad WITH PASSWORD 'zammad'; ALTER USER zammad WITH SUPERUSER CREATEDB;