First of all, this is not a problem reporting forum, only report if you are pretty sure what you are experiencing is a bug with this image and docker, not a configuration issue of OTRS, for that you can use the Github discussions section.
If the container starts up, you can login and don't have any issues with the stuff you configured on the .env file, then the problem probably is in OTRS.
Also be sure you are using the latest image by doing docker pull juanluisbaptiste/otrs:latest.
Image and OTRS versions
Please post the image version you are using (latest, 6.0.x, latest-5x, etc).
Change the article storage type (ArticleStorageDB|ArticleStorageFS). Default is ArticleStorageDB.
OTRS_ARTICLE_STORAGE_TYPE=ArticleStorageDB
Set the backup type (fullbackup|nofullbackup|dbonly). Default is full backup.
OTRS_BACKUP_TYPE="fullbackup"
Set the backup compression method (gzip|bzip2). Default is gzip format.
OTRS_BACKUP_COMRESSION="gzip"
Set backup rotation days. Default is 30 days.
OTRS_BACKUP_ROTATION="30"
Controls whether OTRS services should be stopped before doing a backup. The default is yes.
OTRS_BACKUP_STOP_SERVICES=yes
root@localhost user password. Default password is changeme
OTRS_ROOT_PASSWORD=changeme
Sets the container's hostname (auto-generated if not defined).
OTRS_HOSTNAME=
Set the default language for both agent and customer interfaces (For example, "es" for spanish).
OTRS_LANGUAGE=en
Sets the default timezone.
OTRS_TIMEZONE=UTC
Sets the starting point for the ticket counter.
OTRS_TICKET_COUNTER=
Sets the ticket number generator, possible values are : DateChecksum, Date, AutoIncrement or Random.
OTRS_NUMBER_GENERATOR=DateChecksum
Configure OTRS permissions, possible values are: yes (default), no, skip-article-dir (if using OTRS_ARTICLE_STORAGE_TYPE=ArticleStorageFS)
OTRS_SET_PERMISSIONS=yes
To disable the OTRS ASCII logo at container startup.
SHOW_OTRS_LOGO=yes
Enable the installation of unverified addons. Useful when installing addons downladed form 3rd party sources like OPAR at startup. values are: yes, no (default).
OTRS_ALLOW_NOT_VERIFIED_PACKAGES=no
Enable debug mode, this will install some additional packages to help aid when
debugging
OTRS_DEBUG=no
####### Major Version Upgrade #######
#####################################
This settings will perform a major version upgrade. Please read the documentation
carefully first before attempting to do this upgrade. And don't forget to do a
Do a MAJOR version upgrade. Possible values: yes, no (default). Please check the README file for details.
OTRS_UPGRADE=no
Make a full backup before starting the upgrade process. Possible values: yes (default), no.
OTRS_UPGRADE_BACKUP=yes
Migrate XML configuration files during major version upgrade. Possible values: yes, no (default).
OTRS_UPGRADE_XML_FILES=no
#####################################
SMTP Relay Configuration
#####################################
Module OTRS should use to send mails (e.g "SMTP", "SMTPS", "Sendmail"). Depends on the modules you've installed
OTRS_SENDMAIL_MODULE=SMTP
Server address of the SMTP server to use.
OTRS_SMTP_SERVER=
Port address of the SMTP server to use.
OTRS_SMTP_PORT=
Username to authenticate with.
OTRS_SMTP_USERNAME=
Password of the SMTP user.
OTRS_SMTP_PASSWORD=
Set OTRS_DEBUG=yes and post the startup output.
Describe the issue
I am trying to mount my local codebase to the container. but it errors out.
I have not changed anything in .env except renaming the sample file to .env
Expected behavior
Application should start using local codebase as i can test my code changes against docker instance
Screenshots
If applicable, add screenshots to help explain your problem.
Reporting a bug
First of all, this is not a problem reporting forum, only report if you are pretty sure what you are experiencing is a bug with this image and docker, not a configuration issue of OTRS, for that you can use the Github discussions section.
If the container starts up, you can login and don't have any issues with the stuff you configured on the .env file, then the problem probably is in OTRS.
Also be sure you are using the latest image by doing docker pull juanluisbaptiste/otrs:latest.
Image and OTRS versions
Please post the image version you are using (latest, 6.0.x, latest-5x, etc).
Please include the contents of:
*####Your docker-compose.yml file version: '3'
services: otrs: image: juanluisbaptiste/otrs:latest ports:
/etc/localtime:/etc/localtime:r
Your .env file file
#####################################
Database Configuration
#####################################
Name of database to use. Default is otrs.
OTRS_DB_NAME=otrs
Hostname or IP address of the database server. Default is mariadb.
OTRS_DB_HOST=mariadb
Port of the database server. Default is 3306.
OTRS_DB_PORT=3306
Database user. Default is otrs.
OTRS_DB_USER=otrs
otrs user database password. Default password is changeme
OTRS_DB_PASSWORD=changeme
Database root user name so it can be setup when using an external database. Default user is root.
MYSQL_ROOT_USER=root
Database root password so it can be setup. Default password is changeme.
MYSQL_ROOT_PASSWORD=changeme
Path to the docker secret file inside the container.
OTRS_SECRETS_FILE=
#####################################
OTRS Configuration
#####################################
Container startup mode, possible values:
- no : Starts OTRS ready to be configured.
- yes : Runs the OTRS installer.
- restore : Restores the backup specified by OTRS_BACKUP_DATE environment variable. Please check the README file for details.
OTRS_INSTALL=no
OTRS_BACKUP_DATE=
On backup restore it drops the otrs database it if already exists (by default the container will fail if the database already exists).
OTRS_DROP_DATABASE=no
Set the cron backup time. Default is to run daily at 6am.
Set it to "disable" to disable automated backups
OTRS_BACKUP_TIME="0 4 *"
Change the backup script that gets called from cron
OTRS_CRON_BACKUP_SCRIPT="/etc/cron.d/otrs_backup_custom"
Change the article storage type (ArticleStorageDB|ArticleStorageFS). Default is ArticleStorageDB.
OTRS_ARTICLE_STORAGE_TYPE=ArticleStorageDB
Set the backup type (fullbackup|nofullbackup|dbonly). Default is full backup.
OTRS_BACKUP_TYPE="fullbackup"
Set the backup compression method (gzip|bzip2). Default is gzip format.
OTRS_BACKUP_COMRESSION="gzip"
Set backup rotation days. Default is 30 days.
OTRS_BACKUP_ROTATION="30"
Controls whether OTRS services should be stopped before doing a backup. The default is yes.
OTRS_BACKUP_STOP_SERVICES=yes
root@localhost user password. Default password is changeme
OTRS_ROOT_PASSWORD=changeme
Sets the container's hostname (auto-generated if not defined).
OTRS_HOSTNAME=
Set the default language for both agent and customer interfaces (For example, "es" for spanish).
OTRS_LANGUAGE=en
Sets the default timezone.
OTRS_TIMEZONE=UTC
Sets the starting point for the ticket counter.
OTRS_TICKET_COUNTER=
Sets the ticket number generator, possible values are : DateChecksum, Date, AutoIncrement or Random.
OTRS_NUMBER_GENERATOR=DateChecksum
Configure OTRS permissions, possible values are: yes (default), no, skip-article-dir (if using OTRS_ARTICLE_STORAGE_TYPE=ArticleStorageFS)
OTRS_SET_PERMISSIONS=yes
To disable the OTRS ASCII logo at container startup.
SHOW_OTRS_LOGO=yes
Enable the installation of unverified addons. Useful when installing addons downladed form 3rd party sources like OPAR at startup. values are: yes, no (default).
OTRS_ALLOW_NOT_VERIFIED_PACKAGES=no
Enable debug mode, this will install some additional packages to help aid when
debugging
OTRS_DEBUG=no
####### Major Version Upgrade ####### #####################################
This settings will perform a major version upgrade. Please read the documentation
carefully first before attempting to do this upgrade. And don't forget to do a
backup first or enable OTRS_UPGRADE_BACKUP=yes
#
https://github.com/juanluisbaptiste/docker-otrs/#major-version-upgrade
# #####################################
Do a MAJOR version upgrade. Possible values: yes, no (default). Please check the README file for details.
OTRS_UPGRADE=no
Make a full backup before starting the upgrade process. Possible values: yes (default), no.
OTRS_UPGRADE_BACKUP=yes
Migrate XML configuration files during major version upgrade. Possible values: yes, no (default).
OTRS_UPGRADE_XML_FILES=no
#####################################
SMTP Relay Configuration
#####################################
Module OTRS should use to send mails (e.g "SMTP", "SMTPS", "Sendmail"). Depends on the modules you've installed
OTRS_SENDMAIL_MODULE=SMTP
Server address of the SMTP server to use.
OTRS_SMTP_SERVER=
Port address of the SMTP server to use.
OTRS_SMTP_PORT=
Username to authenticate with.
OTRS_SMTP_USERNAME=
Password of the SMTP user.
OTRS_SMTP_PASSWORD=
Describe the issue I am trying to mount my local codebase to the container. but it errors out. I have not changed anything in .env except renaming the sample file to .env
Expected behavior Application should start using local codebase as i can test my code changes against docker instance
Screenshots If applicable, add screenshots to help explain your problem.