At the company I work at we have been running OTRS 4 on docker on production for multiple companies without issues for over a year now with more than 10k downloads on docker hub. I was planning on posting earlier about them here but, you know...life happens. Now I had some free time again I managed to finish the update to OTRS 5 so I decided to post about it here. If you aren't familiar with docker then please read about it here and install it first, along with docker-compose.
With docker everything is more easy , to start all the components of an OTRS install you just need to use a docker-compose.yml service definition file like the following one:
Code: Select all
version: '2'
services:
otrs:
image: juanluisbaptiste/otrs:latest
ports:
- "80:80"
links:
- mariadb:mariadb
- postfix:postfix
volumes_from:
- data
environment:
MYSQL_ROOT_PASSWORD: changeme
OTRS_ROOT_PASSWORD: changeme
OTRS_NUMBER_GENERATOR: Date
OTRS_LANGUAGE: es
OTRS_POSTMASTER_FETCH_TIME: 5
mariadb:
image: juanluisbaptiste/otrs-mariadb:latest
expose:
- "3306"
volumes_from:
- data
environment:
MYSQL_ROOT_PASSWORD: changeme
postfix:
image: juanluisbaptiste/postfix:latest
expose:
- "25"
environment:
SMTP_SERVER=smtp.yourcompany.com
SMTP_USERNAME=otrs@yourcompany.com
SMTP_PASSWORD=xxxxxxx
SERVER_HOSTNAME=support.yourcompany.com
# nginx:
# image: juanluisbaptiste/bigbluebutton-proxy
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - /var/run/docker.sock:/tmp/docker.sock
# - "/etc/localtime:/etc/localtime:ro"
data:
image: centos/mariadb:latest
volumes:
- /var/lib/mysql
- "./otrs/backup:/var/otrs/backups"
command: /bin/true
- A web server container with OTRS installed and ready to use.
- A MySQL database server container preconfigured with needed settings according to the installation instructions.
- An SMTP Relay container.
- A data volume container to store OTRS data files (database files, /var/*, etc).
- A nginx proxy server container (optional).
Modify the environment variables on the docker-compose.yml file as needed and start the OTRS service like this:
First, pull all container images:
Code: Select all
sudo docker-compose pull
Code: Select all
sudo docker-compose up -d
http://localhost/otrs/
Now you can go ahead and start configuring and using your new dockerized OTRS install. There's more information on this blog post.
I hope this is also helpul for someone else