|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
version: '3.7' networks: testrail: driver: overlay volumes: cassandra_data: configs: config.php: external: true name: testrail-config.php_v4 prefork.conf: external: true name: testrail-apache-prefork.conf services: testrail: image: registry.com/platform/testrail-faketime:7.5.3 networks: - testrail configs: - source: config.php target: /var/www/testrail/config/config.php - source: prefork.conf target: /etc/apache2/mods-available/mpm_prefork.conf environment: FAKETIME: -5184000 MYSQL_USER: testrail MYSQL_PASSWORD: j0-k34 MYSQL_DATABASE: testrail MYSQL_HOST_OLD: HOST-rc1a-6 MYSQL_HOST: HOST-c-c9q2 ports: - target: 80 published: 7598 protocol: tcp mode: host logging: driver: "json-file" options: max-size: "10m" max-file: "3" deploy: restart_policy: condition: on-failure delay: 30s replicas: 1 placement: constraints: - "node.hostname == swarm1" cassandra: image: testrail/cassandra:latest networks: - testrail volumes: - 'cassandra_data:/var/lib/cassandra' environment: - HEAP_NEWSIZE=128M - MAX_HEAP_SIZE=512M logging: driver: "json-file" options: max-size: "10m" max-file: "3" deploy: resources: limits: memory: 1500M restart_policy: condition: on-failure max_attempts: 50 replicas: 1 placement: constraints: - "node.hostname == swarm1" |
Thank you for reading this post, don't forget to subscribe!
testrail-config.php_v4
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
<?php /* |-------------------------------------------------------------------- | DATABASE CONFIGURATION |-------------------------------------------------------------------- | | Please specify the database connection settings below. Currently | supported databases are SQL Server (2005, 2008, 2012) and MySql (5). */ define('DB_DRIVER', 'mysql'); // sqlsrv or mysql define('DB_HOSTNAME', 'HOST-rc1a-6h24); define('DB_DATABASE', 'testrail'); define('DB_USERNAME', 'testrail'); define('DB_PASSWORD', 'fej0-k3lji'); /* |-------------------------------------------------------------------- | DIAGNOSTICS |-------------------------------------------------------------------- | | The following settings configure the logging and error behavior | of TestRail. */ define('LOG_PATH', '/usr/local/testrail/logs/'); /* |-------------------------------------------------------------------- | OPTIMIZATIONS |-------------------------------------------------------------------- | | You can choose whether to optimize the delivery of style sheet and | javascript files and the handling of language files. The following | optimization settings are available: | | DEPLOY_OPTIMIZE_LANG: If enabled, TestRail uses a single combined | language file named 'all_lang' instead of | multiple language files. | | DEPLOY_OPTIMIZE_CSS: If enabled, a single combined style sheet | is served to the clients. | | DEPLOY_OPTIMIZE_JS: If enabled, a single combined javascript | file is served to the clients. */ define('DEPLOY_OPTIMIZE_LANG', true); define('DEPLOY_OPTIMIZE_CSS', true); define('DEPLOY_OPTIMIZE_JS', true); define('CASSANDRA_HOSTNAME', 'cassandra'); define('CASSANDRA_PORT', 9042); define('CASSANDRA_KEYSPACE', 'testrail'); define('CASSANDRA_USERNAME', 'cassandra'); define('CASSANDRA_PASSWORD', 'cassandra'); define('CASSANDRA_SCHEMA_VERSION', 2); |
testrail-apache-prefork.conf
|
1 2 3 4 5 6 7 8 |
<IfModule mpm_prefork_module> StartServers 1 MinSpareServers 1 MaxSpareServers 2 MaxRequestWorkers 2 MaxConnectionsPerChild 1000 </IfModule> |