Public | Automated Build

Last pushed: 16 hours ago
Short Description
An open source issue tracker that provides a delicate balance between simplicity and power.
Full Description

MantisBT is an open source issue tracker that provides
a delicate balance between simplicity and power.

docker-compose.yml

mantisbt:
  image: vimagick/mantisbt:latest
  ports:
    - "8989:80"
  links:
    - mysql
  restart: always

mysql:
  image: mysql:latest
  environment:
    - MYSQL_ROOT_PASSWORD=root
    - MYSQL_DATABASE=bugtracker
    - MYSQL_USER=mantisbt
    - MYSQL_PASSWORD=mantisbt
  restart: always

You can use mariadb/postgres instead of mysql.

install

$ firefox http://localhost:8989/admin/install.php
>>> username: administrator
>>> password: root
==================================================================================
Installation Options
==================================================================================
Type of Database                                        MySQL/MySQLi
Hostname (for Database Server)                          mysql
Username (for Database)                                 mantisbt
Password (for Database)                                 mantisbt
Database name (for Database)                            bugtracker
Admin Username (to create Database if required)         root
Admin Password (to create Database if required)         root
Print SQL Queries instead of Writing to the Database    [ ]
Attempt Installation                                    [Install/Upgrade Database]
==================================================================================

email

Append following to /var/www/html/config_inc.php

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_administrator_email = 'admin@example.org';
$g_webmaster_email = 'webmaster@example.org';
$g_return_path_email = 'mantisbt@example.org';
$g_from_email = 'mantisbt@example.org';
$g_smtp_host = 'smtp.example.org';
$g_smtp_port = 25;
$g_smtp_connection_mode = 'tls';
$g_smtp_username = 'mantisbt';
$g_smtp_password = '********';
Docker Pull Command
Owner
vimagick
Source Repository

Comments (10)
jessechang
8 days ago

Thanks for the image, works great! For email, it should be at /var/www/html/config/config_inc.php. Hostname (for Database Server) can be tricky, if using docker network, please put the db ip you see by "docker network inspect".

lv0gun9
a month ago

Thank you.

mgaertner
4 months ago

don't forget to change the DB hostname from localhost to mysql

philosomatiker
4 months ago

I have the same problem ;) ... won't take any given credentials for the installation

jornvdd
4 months ago

When I login and try to create the database, the attempt to connect to database as admin fails.
Passwords have been set as mentioned in the installation options. Please advice.

fleabetto
8 months ago

The captcha image in this container doesn't work (Call to undefined function imageftbbox() meaning lack of freetype support).
To fix this, just run the command below (source: https://github.com/docker-library/docs/tree/master/php#php-core-extensions) and restart the container.

apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
&& docker-php-ext-install -j$(nproc) iconv mcrypt \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd

@vimagick can you include this in your image? Thank you!

fleabetto
8 months ago

@janjko I just inserted the email configuration entries above and mail notifications worked correctly.

janjko
9 months ago

I'm guessing this image is missing the PEARs Mail package (if you want mail capability), and PEARs Net_SMTP package (if you want to send mail with SMTP). So if someone is trying to make Mantis mail work, just run:

docker exec MANTIS_CONTAINER_NAME pear install Mail

docker exec MANTIS_CONTAINER_NAME pear install Net_SMTP

1067511899
a year ago

@fatmanmclone90:you should visit :http://localhost:8989,not the containerIP.

fatmanmclone90
a year ago

I'm new to docker, so apologies for the possibly silly questions. But after running "docker run vimagick/mantisbt", what do I do? The container is running but there is no website at http://continaerIp:8989