This is a repository for Docker images of Mantis Bug Tracker.
Create a database first. If you use MariaDB or variants:
CREATE USER 'mantis'@'%';
SET PASSWORD FOR 'mantis'@'%' = PASSWORD('secret');
DROP DATABASE IF EXISTS mantis;
CREATE DATABASE mantis DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON mantis.* TO 'mantis'@'%';
FLUSH PRIVILEGES;
In this example mantis, secret, and mantis are used for the username, password, and database respectively.
These values are asked when MantisBT runs for the first time. If you use PostgreSQL, that's fine. Create a schema.
Run the container:
docker container run --rm \
--detach \
--publish 80:80 \
--name mantisbt \
daverona/mantisbt
If your DBMS is a container on Docker network, say database, add option --network database.
Visit http://localhost and continue to configure MantisBT.
The default username and password are administrator and root respectively.
Once done, copy the configuration file config_inc.phpfrom the container to your host and stop the container:
docker container exec mantisbt cat /app/config/config_inc.php > config_inc.php
docker container stop mantisbt
You may want to review and customize more config_inc.php. For more information read Admin Guide.
Start the container with config_inc.php mounted to /app/config:
docker container run --rm \
--detach \
--volume $PWD/config_inc.php:/app/config/config_inc.php:ro \
--publish 80:80 \
--name mantisbt \
daverona/mantisbt
To log mantisbt output to stdout, add to config_inc.php:
$g_log_destination = 'php://stdout';
To log mantisbt output to a file, add to config_inc.php:
$g_log_destination = 'file://var/log/mantis/mantis.log';
Note that the directory containing mantisbt log file needs be owned
by web server and /var/log/mantis is prepared for this purpose.
Content type
Image
Digest
Size
27.4 MB
Last updated
almost 6 years ago
docker pull daverona/mantisbt