2024-10-05 18:19:58 +02:00
# Rx3 Ampache Mageia-9 Docker Image
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Global Settings
#-------------------------------------------------------------------------------
2024-12-02 16:51:20 +01:00
ORG_NAME="rx3-docker"
ORG_REGISTRY="docker.xor.rx3:5000"
ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
2024-10-05 18:19:58 +02:00
#-------------------------------------------------------------------------------
# Image Settings
#-------------------------------------------------------------------------------
2024-12-02 16:51:20 +01:00
APPL_NAME="ampache"
APPL_NAME_FULL="Ampache"
APPL_NAME_SHORT="ampache"
APPL_ORG="rx3-docker"
2024-12-14 08:11:55 +01:00
APPL_VERSION="1.3.1"
2024-10-05 18:19:58 +02:00
APPL_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
#-------------------------------------------------------------------------------
# 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}" != "prd" ]]
then
APPL_SUFFIX="-${APPL_ENV}"
2024-12-02 16:51:20 +01:00
PORT_ENV_OFFSET=100
2024-10-05 18:19:58 +02:00
else
APPL_SUFFIX=""
2024-12-02 16:51:20 +01:00
PORT_ENV_OFFSET=0
2024-10-05 18:19:58 +02:00
fi
2024-12-02 16:51:20 +01:00
ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
APPL_URL_PREFIX="${ORG_REGISTRY}/${APPL_ORG}/${APPL_NAME_SHORT}"
2024-10-05 18:19:58 +02:00
2024-12-02 16:51:20 +01:00
HOST_NAME_PREFIX=${APPL_NAME_SHORT}${APPL_SUFFIX}
2024-10-05 18:19:58 +02:00
2024-12-02 16:51:20 +01:00
PORT_ENV_OFFSET=0
2024-10-05 18:19:58 +02:00
2024-12-02 16:51:20 +01:00
PORT_SV_INT=9001
PORT_SV_OFFSET=1000
2024-10-05 18:19:58 +02:00
2024-12-02 16:51:20 +01:00
NETWORK_NAME=${HOST_NAME_PREFIX}
NETWORK_IF_NAME=br-${APPL_NAME_SHORT}-${APPL_ENV}
DOCKER_TOOLS_DEBUG=FALSE
DOCKER_TOOLS_VOLUME=MERGED
#DOCKER_TOOLS_EXECPTION_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 |
#------------------+----------+--------------------------+--------------------+------------------+-------------------------------+-----------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+
2024-10-05 18:19:58 +02:00
2024-12-02 16:51:20 +01:00
docker_service_add DB database ${ORG_URL_PREFIX} mariadb - 1.1.0-mga9 - - - mysql - 8006 3306 - - postgres postgres
2024-10-05 18:19:58 +02:00
2024-12-14 08:11:55 +01:00
docker_service_add WAI webapp-internal ${ORG_URL_PREFIX} ampache "Rx3-Docker/Ampache" ${APPL_VERSION} ${ORG_URL_PREFIX} php-apache 1.4.0-mga9 - - 8085 80 - - apache apache
docker_service_add WAE webapp-external ${ORG_URL_PREFIX} ampache - ${APPL_VERSION} - - - - - 8086 80 - - apache apache
2024-10-05 18:19:58 +02:00
#-------------------------------------------------------------------------------
2024-12-02 16:51:20 +01:00
# Database
2024-10-05 18:19:58 +02:00
#-------------------------------------------------------------------------------
2024-12-02 16:51:20 +01:00
DB_ROOT_HOST='%' # needs to be enclosed with quotes
DB_ROOT_PASSWORD="mysqladmin"
DB_DB_NAME="ampache"
DB_DB_USER="ampache"
DB_DB_PASSWORD="ampacheadmin"
2024-10-05 18:19:58 +02:00
2024-12-02 16:51:20 +01:00
#-------------------------------------------------------------------------------
# WebApp
#-------------------------------------------------------------------------------
2024-10-05 18:19:58 +02:00
APACHE_DOC_ROOT=/var/www/public
2024-12-02 16:51:20 +01:00
2024-12-14 00:20:25 +01:00
WAI_CROND_ENABLED="TRUE"
2024-12-02 22:29:09 +01:00
WAI_LOG_HTTPD_INT="/var/log/httpd"
WAI_LOG_HTTPD_EXT="./var/log/httpd-webapp-internal"
WAE_LOG_HTTPD_INT="/var/log/httpd"
WAE_LOG_HTTPD_EXT="./var/log/httpd-webapp-external"