- Switch to rx3/mariadb-mga9:1.0.0 image,

- Now full Rx3 based!
This commit is contained in:
Arnaud G. GIBERT 2024-08-27 23:43:01 +02:00
parent d49d23a60a
commit 10495dbfa5
5 changed files with 33 additions and 12 deletions

10
.env
View File

@ -18,7 +18,7 @@ IMG_URL_PREFIX="${IMG_REGISTRY}/${IMG_ORG}"
IMG_NAME="ampache-mga9" IMG_NAME="ampache-mga9"
IMG_FULL_NAME="Rx3 Ampache Mageia-9 Docker Image" IMG_FULL_NAME="Rx3 Ampache Mageia-9 Docker Image"
IMG_VERSION="1.1.1" IMG_VERSION="1.2.0"
IMG_URL="${IMG_URL_PREFIX}/${IMG_NAME}:${IMG_VERSION}" IMG_URL="${IMG_URL_PREFIX}/${IMG_NAME}:${IMG_VERSION}"
IMG_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>' IMG_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
@ -27,3 +27,11 @@ IMG_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# User Settings # User Settings
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
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"

View File

@ -43,7 +43,7 @@ RUN urpmi --force wget ffmpeg lib64opencl1 flac inotify-tools lame lib64avcodec5
&& find /var/www -type d -name ".git*" -print0 | xargs -0 rm -rf {} \ && find /var/www -type d -name ".git*" -print0 | xargs -0 rm -rf {} \
&& chown -R root:root /var/www \ && chown -R root:root /var/www \
&& chmod -R 775 /var/www \ && chmod -R 775 /var/www \
&& echo -e '${AMPACHE}' | sed -e 's/ *$//' > /etc/init.d/ampache \ && echo -e '${AMPACHE}' | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/ampache \
&& chmod a+x /etc/init.d/ampache \ && chmod a+x /etc/init.d/ampache \
&& ln -s /etc/init.d/ampache /etc/rcD.d/S40ampache \ && ln -s /etc/init.d/ampache /etc/rcD.d/S40ampache \
&& sed -i -e "s/upload_max_filesize = 16M/upload_max_filesize = 32M/" /etc/php.d/01_fileuploads.ini \ && sed -i -e "s/upload_max_filesize = 16M/upload_max_filesize = 32M/" /etc/php.d/01_fileuploads.ini \

View File

@ -5,7 +5,7 @@ Welcome to Rx3/Ampache-Mga9 docker image!
This is project aims to build a Ampache + Mageia 9 docker image. This is project aims to build a Ampache + Mageia 9 docker image.
Features: Features:
- ... - Based on rx3/mariadb-mga9:1.0.0

View File

@ -1,3 +1,12 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3/Ampache-Mga9 V 1.2.0 - A. GIBERT - 2024/08/27
------------------------------------------------------------------------------------------------------------------------------------
- Switch to rx3/mariadb-mga9:1.0.0 image,
- Now full Rx3 based!
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------
Rx3/Ampache-Mga9 V 1.1.1 - A. GIBERT - 2024/08/27 Rx3/Ampache-Mga9 V 1.1.1 - A. GIBERT - 2024/08/27
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------

View File

@ -7,23 +7,27 @@ services:
database: database:
container_name: ${IMG_NAME}-mysql container_name: ${IMG_NAME}-mysql
image: mariadb:11.4.3-ubi9 image: ${IMG_URL_PREFIX}/mariadb-mga9:1.0.0
environment: environment:
MARIADB_ROOT_PASSWORD: mysqladmin MARIADB_UID: ${MARIADB_UID}
MARIADB_DATABASE: ampache MARIADB_GID: ${MARIADB_GID}
MARIADB_USER: ampache MARIADB_ROOT_HOST: ${MARIADB_ROOT_HOST}
MARIADB_PASSWORD: ampacheadmin MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_ROOT_HOST: '%' # needs to be enclosed with quotes MARIADB_DATABASE: ${MARIADB_DATABASE}
MARIADB_USER: ${MARIADB_USER}
user: "983:981" MARIADB_PASSWORD: ${MARIADB_PASSWORD}
volumes: volumes:
- ./mysql:/var/lib/mysql - ./mysql:/var/lib/mysql
networks: networks:
- ampache - ampache
ports:
- "127.0.0.1:9006:9001"
- "127.0.0.1:8006:3306"
webapp-internal: webapp-internal:
container_name: ${IMG_NAME}-internal container_name: ${IMG_NAME}-internal