참고: https://hub.docker.com/r/vimagick/mantisbt
- mantisbt 이미지 설치
docker pull vimagick/mantisbt:latest
- mysql 이미지 설치
docker pull mysql:5.7
- docker-compose.yml 파일 (빨간색 추가)
version: '3.8'
services:
mantisbt:
image: vimagick/mantisbt:latest
ports:
- "8989:80"
links:
- mysql
restart: always
mysql:
image: mysql:5.7
volumes:
- ./data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=bugtracker
- MYSQL_USER=mantisbt
- MYSQL_PASSWORD=mantisbt
restart: always
- 실행 (docker-compose.yml 파일 위치에서 실행)
$ docker-compose up -d
- 설정 (브라우저에서)
http://localhost:8989/admin/install.php
최초 로그인
administrator / root
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
- email (/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 = '********';