version: "3" services: web: # Pin the version for production usage! #image: okainov/mantisbt:latest build: . 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= # 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:5.7 container_name: mantis_db volumes: - ./db_data:/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']