129 lines
4.7 KiB
Plaintext
129 lines
4.7 KiB
Plaintext
# Rx3-Docker/MantisBT Docker Image
|
|
#-------------------------------------------------------------------------------
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# Global Settings
|
|
#-------------------------------------------------------------------------------
|
|
|
|
ORG_NAME="rx3-docker"
|
|
ORG_REGISTRY="docker.xor.rx3:5000"
|
|
|
|
ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# Image Settings
|
|
#-------------------------------------------------------------------------------
|
|
|
|
APPL_NAME="mantisbt"
|
|
APPL_NAME_FULL="Mantis Bug Tracker"
|
|
APPL_NAME_SHORT="mantisbt"
|
|
APPL_ORG="rx3-docker"
|
|
APPL_VERSION="1.0.3"
|
|
APPL_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# User Settings
|
|
#-------------------------------------------------------------------------------
|
|
|
|
#APPL_ENV="prd"
|
|
#APPL_ENV="tst"
|
|
#APPL_ENV="int"
|
|
APPL_ENV="dvp"
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# Common
|
|
#-------------------------------------------------------------------------------
|
|
|
|
if [[ "${APPL_ENV}" != "prd" ]]
|
|
then
|
|
APPL_SUFFIX="-${APPL_ENV}"
|
|
PORT_ENV_OFFSET=100
|
|
else
|
|
APPL_SUFFIX=""
|
|
PORT_ENV_OFFSET=0
|
|
fi
|
|
|
|
ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
|
|
APPL_URL_PREFIX="${ORG_REGISTRY}/${APPL_ORG}/${APPL_NAME_SHORT}"
|
|
|
|
HOST_NAME_PREFIX=${APPL_NAME_SHORT}${APPL_SUFFIX}
|
|
|
|
PORT_ENV_OFFSET=0
|
|
|
|
PORT_SV_INT=9001
|
|
PORT_SV_OFFSET=1000
|
|
|
|
NETWORK_NAME=${HOST_NAME_PREFIX}
|
|
NETWORK_IF_NAME=br-${HOST_NAME_PREFIX}
|
|
|
|
DOCKER_TOOLS_DEBUG=FALSE
|
|
DOCKER_TOOLS_VOLUME=MIXED
|
|
#DOCKER_TOOLS_VOLUME=MERGED
|
|
DOCKER_TOOLS_EXEPTION_LIBS="postgres:pgsql"
|
|
|
|
|
|
|
|
#------------------+----------+--------------------------+--------------------+------------------+-------------------------------+----------------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+
|
|
# | Variable | Service | Target Image | From Image | Module | Main Port | Admin Port | User | Group |
|
|
# | Prefix | Name | URL Prefix | Name | Name Full | Version | URL Prefix | Name | Version | Name | Version | Ext | Int | Ext | Int | Name / Id | Name / Id |
|
|
#------------------+----------+--------------------------+--------------------+------------------+-------------------------------+----------------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+
|
|
|
|
docker_service_add DB database ${ORG_URL_PREFIX} postgresql - 1.1.2-mga9 - - - postgres - - 5432 - - postgres postgres
|
|
|
|
docker_service_add WA webapp ${ORG_URL_PREFIX} mantisbt "Rx3-Docker/MantisBT" ${APPL_VERSION}-mga9 ${ORG_URL_PREFIX} php-apache 1.5.2-mga9 - - 8070 80 - - apache apache
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# Database
|
|
#-------------------------------------------------------------------------------
|
|
|
|
DB_POSTGRES_PASSWORD="postgresadmin"
|
|
DB_NAME="mantisbt"
|
|
DB_USER="mantisbt"
|
|
DB_PASSWORD="mantisbtadmin"
|
|
|
|
DB_SERVER_NAME="MantisBT"
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# WebApp
|
|
#-------------------------------------------------------------------------------
|
|
|
|
WA_CROND_ENABLED="FALSE"
|
|
|
|
WA_APACHE_DOC_ROOT="/var/www/html"
|
|
WA_PHP_UPLOAD_LIMIT="64M"
|
|
|
|
WA_LOG_HTTPD_EXT="./var/log/httpd-webapp"
|
|
WA_LOG_HTTPD_INT="/var/log/httpd"
|
|
|
|
WA_CONF_EXT=./etc/${APPL_NAME}
|
|
WA_CONF_INT=${WA_APACHE_DOC_ROOT}/${APPL_NAME}/config
|
|
|
|
docker_config_add ${WA_CONF_EXT}/config_inc.php ${WA_CONF_EXT}/config_inc.php.ref
|
|
|
|
WA_SMTP_SERVER="mail.rx3.net"
|
|
WA_WINDOW_TITLE="MantisBT - Arena-SI"
|
|
WA_LOGO_IMG="images-local/arena-si.jpg"
|
|
|
|
if [[ "${APPL_ENV}" != "prd" ]]
|
|
then
|
|
WA_APPL_URL="http://localhost:${WA_PORT_MAIN_EXT}/${APPL_NAME}/"
|
|
else
|
|
WA_APPL_URL="https://private.arena-si.fr/tools/${APPL_NAME}/"
|
|
fi
|
|
|
|
WA_MANTISBT_ADMIN_ENABLED="TRUE"
|
|
#WA_MANTISBT_ADMIN_ENABLED="FALSE"
|
|
|
|
WA_IMG_EXT=./var/www/html/${APPL_NAME}/images-local
|
|
WA_IMG_INT=${WA_APACHE_DOC_ROOT}/${APPL_NAME}/images-local
|