Install your Zammad instance in any Linux server with 'https' protocol certificate provided by Let's Encrypt.
✋ This repo uses nginx on the host machine, not on the container. Here's the reason why.
-
Follow these instructions to install the SSL Let's Encrypt Certificate
-
Git clone this repository to your server
git clone https://github.com/danperrout/zammad-docker-letsencrypt.git
cd zammad-docker-letsencrypt
-
Replace the 'example.com' domain on the
default
file to your own domain -
Copy the
default
file to the nginx/sites-available folder
sudo cp default /etc/nginx/sites-available/default
- Create a symbolic link on the the docker volume so that the nginx on the host can access it
sudo ln -s /var/lib/docker/volumes/zammad-docker-letsencrypt_zammad-data/_data/ /opt/zammad
-
Rename
sample.env
to.env
and change the 'POSTGRES_PASS' value -
Run the Docker-compose command:
sudo docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d
- ...and wait a few minutes (~5) until the initial setup is finished and you're done! Access https://yourdomain.com and enjoy!
Use an admin account to make the following configurations on your instance.
Run this command to add an e-mail account with SMTP access only (notification only):
- SMTP_HOST
- SMTP_USER
- SMTP_PASS
- SMTP_PORT
sudo docker exec -it zammad-docker-letsencrypt_zammad-railsserver_1 /bin/bash
Edit the variables on the 'rails r' command:
rails r "Channel.create(area: 'Email::Account', options: { inbound: { adapter: 'null', options: {} }, outbound: { adapter: 'smtp', options: { host: 'SMTP_HOST', port: SMTP_PORT, user: 'SMTP_USER', password: 'SMTP_PASS' } } }, active: true, preferences: { editable: false }, updated_by_id: 1, created_by_id: 1)"
exit