# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

version: '3.6'

services:
  bugzilla6.test:
    build:
      args:
        - BZDB=
      context: .
      dockerfile: Dockerfile
    command: dev_httpd
    tmpfs:
      - /tmp
      - /run
    environment:
      - 'BMO_inbound_proxies=*'
      - BMO_db_driver=sqlite
      - BMO_db_host=localhost
      - BMO_db_name=bugs
      - BMO_db_pass=bugs
      - BMO_db_user=bugs
      - BMO_memcached_namespace=bugzilla
      - BMO_memcached_servers=memcached:11211
      - BMO_ses_username=ses@mozilla.bugs
      - BMO_ses_password=password123456789!
      - BMO_urlbase=AUTOMATIC
      - BUGZILLA_ALLOW_INSECURE_HTTP=1
      - BZ_ANSWERS_FILE=/app/conf/checksetup_answers.txt
      - BZ_QA_ANSWERS_FILE=/app/.github/checksetup_answers.txt
      - BZ_QA_CONF_FILE=/app/.github/selenium_test.conf
      - BZ_QA_CONFIG=1
      - LOCALCONFIG_ENV=1
      - LOG4PERL_CONFIG_FILE=log4perl-test.conf
      - LOGGING_PORT=5880
      - PORT=8000
      - TWD_BROWSER=firefox
      - TWD_HOST=selenium
      - TWD_PORT=4444
    depends_on:
      - memcached
      - selenium

  memcached:
    image: memcached:latest

  selenium:
    image: selenium/standalone-firefox:3.141.59
    shm_size: '512m'
    #ports:
    #  - "5900:5900"
