# Rx3 Ampache Mageia-9 Docker Image #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # Global Settings #------------------------------------------------------------------------------- APPL_ORG="rx3" APPL_REGISTRY="docker.xor.rx3:5000" APPL_URL_PREFIX="${APPL_REGISTRY}/${APPL_ORG}" #------------------------------------------------------------------------------- # Image Settings #------------------------------------------------------------------------------- APPL_NAME="ampache-mga9" APPL_FULL_NAME="Rx3 Ampache Mageia-9 Docker Image" APPL_SHORT_NAME="ampache" APPL_VERSION="1.2.2" APPL_URL="${APPL_URL_PREFIX}/${APPL_NAME}:${APPL_VERSION}" APPL_MAINTAINER='"Arnaud G. GIBERT" ' #------------------------------------------------------------------------------- # User Settings #------------------------------------------------------------------------------- #APPL_ENV="prd" #APPL_ENV="tst" #APPL_ENV="int" APPL_ENV="dvp" MUSIC_REPO="./opt/music" VIDEO_REPO="./opt/video" #------------------------------------------------------------------------------- # Common #------------------------------------------------------------------------------- if [[ "${APPL_ENV}" != "prod" ]] then APPL_SUFFIX="-${APPL_ENV}" ENV_PORT_OFFSET=100 else APPL_SUFFIX="" ENV_PORT_OFFSET=0 fi CONT_NAME_PREFIX=${APPL_NAME/-mga9}${APPL_SUFFIX} SV_PORT_OFFSET=1000 NETWORK_NAME=${CONT_NAME_PREFIX} NETWORK_IF_NAME=br-${APPL_SHORT_NAME}-${APPL_ENV} #------------------------------------------------------------------------------- # Database #------------------------------------------------------------------------------- DATABASE_IMG=${APPL_URL_PREFIX}/mariadb-mga9:1.0.2 DATABASE_CONT_NAME="${CONT_NAME_PREFIX}-database" DATABASE_PORT=$(( 8006 + ${ENV_PORT_OFFSET})) DATABASE_SV_PORT=$(( ${DATABASE_PORT} + ${SV_PORT_OFFSET})) MARIADB_UID=983 MARIADB_GID=981 MARIADB_ROOT_HOST='%' # needs to be enclosed with quotes MARIADB_ROOT_PASSWORD="mysqladmin" MARIADB_DATABASE="ampache" MARIADB_USER="ampache" MARIADB_PASSWORD="ampacheadmin" #------------------------------------------------------------------------------- # WebApp #------------------------------------------------------------------------------- WEBAPP_IMG=${APPL_URL} WEBAPP_INT_CONT_NAME="${CONT_NAME_PREFIX}-webapp-internal" WEBAPP_INT_PORT=$(( 8085 + ${ENV_PORT_OFFSET})) WEBAPP_INT_SV_PORT=$(( ${WEBAPP_INT_PORT} + ${SV_PORT_OFFSET})) WEBAPP_EXT_CONT_NAME="${CONT_NAME_PREFIX}-webapp-external" WEBAPP_EXT_PORT=$(( ${WEBAPP_INT_PORT} + 1)) WEBAPP_EXT_SV_PORT=$(( ${WEBAPP_EXT_PORT} + ${SV_PORT_OFFSET})) APACHE_UID=980 APACHE_GID=977 APACHE_DOC_ROOT=/var/www/public