version: "3" services: web: # Pin the version for production usage! image: okainov/mantisbt:latest container_name: mantis_web ports: - "8989:80" environment: # Comment or set to 0 in production! - MANTIS_ENABLE_ADMIN=1 # Set master salt, typically can be generated by `cat /dev/urandom | head -c 64 | base64` #- MASTER_SALT= # Set base email settings. For more detailed configuration you'll need to add own config file - EMAIL_WEBMASTER=webmaster@localhost - EMAIL_FROM=webmaster@localhost - EMAIL_FROM_NAME=Mantis BT - EMAIL_RETURN_PATH=webmaster@localhost # SMTP Settings, below are default values #- SMTP_HOST=smtp.yourmail.com #- SMTP_USER=username #- SMTP_PASSWORD=superstrongpassword #- SMTP_PORT=587 #- SMTP_MODE=tls # Maps to $g_smtp_connection_mode, defaults to tls, can be ssl or empty # Uncomment only if modified from default values #- MYSQL_HOST=db #- MYSQL_DATABASE=bugtracker #- MYSQL_USER=mantis #- MYSQL_PASSWORD=mantis # If you need to customize more options in config, create `config_inc_addon.php` and uncomment lines below # This file will be included from the main config. #volumes: # - ./config_inc_addon.php:/var/www/html/config/config_inc_addon.php depends_on: - db restart: always db: image: mysql:8.4 container_name: mantis_db volumes: - ./db_data_v8:/var/lib/mysql environment: # You might want to change root password before first run - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=bugtracker - MYSQL_USER=mantis - MYSQL_PASSWORD=mantis # Set default collation so Mantis does not complain about latin1 command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']