Arnaud G. GIBERT
7682c0fb16
- PHP memory limit increased from 128M to 512M, - mpm support, - pwauth support, - Remove now unneeded pwauth install & PHP config. - Now use rx3/mariadb-mga9:1.0.2 - Variabilization of external server ports in env & compose file, - Now use docker_tools for .env building.
108 lines
2.6 KiB
YAML
108 lines
2.6 KiB
YAML
# Rx3 Ampache Mageia-9 Docker Image
|
|
#-------------------------------------------------------------------------------
|
|
|
|
name: ${IMG_NAME}
|
|
|
|
services:
|
|
database:
|
|
container_name: ${IMG_NAME}-mysql
|
|
|
|
image: ${IMG_URL_PREFIX}/mariadb-mga9:1.0.2
|
|
|
|
environment:
|
|
MARIADB_UID: ${MARIADB_UID}
|
|
MARIADB_GID: ${MARIADB_GID}
|
|
MARIADB_ROOT_HOST: ${MARIADB_ROOT_HOST}
|
|
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
|
MARIADB_DATABASE: ${MARIADB_DATABASE}
|
|
MARIADB_USER: ${MARIADB_USER}
|
|
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
|
|
|
|
volumes:
|
|
- ./mysql:/var/lib/mysql
|
|
|
|
networks:
|
|
- ampache
|
|
|
|
ports:
|
|
- "127.0.0.1:${DATABASE_SV_PORT}:9001"
|
|
- "127.0.0.1:${DATABASE_PORT}:3306"
|
|
|
|
webapp-internal:
|
|
container_name: ${IMG_NAME}-internal
|
|
|
|
image: ${IMG_URL}
|
|
|
|
build:
|
|
context: .
|
|
args:
|
|
- IMG_NAME=${IMG_NAME}
|
|
- IMG_FULL_NAME=${IMG_FULL_NAME}
|
|
- IMG_VERSION=${IMG_VERSION}
|
|
- IMG_MAINTAINER=${IMG_MAINTAINER}
|
|
- IMG_URL_PREFIX=${IMG_URL_PREFIX}
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
- APACHE_UID=980
|
|
- APACHE_GID=977
|
|
- APACHE_DOC_ROOT=/var/www/public
|
|
- DISABLE_INOTIFYWAIT_CLEAN=1
|
|
|
|
volumes:
|
|
- ./ampache-internal/config:/var/www/config
|
|
- ./ampache-internal/log:/var/log/ampache
|
|
- ./etc/cron.d/ampache:/etc/cron.d/ampache:ro
|
|
- /etc/passwd:/etc/passwd:ro
|
|
- /etc/group:/etc/group:ro
|
|
- /etc/shadow:/etc/shadow:ro
|
|
- ./media/music:/media/music
|
|
- ./media/video:/media/video
|
|
|
|
networks:
|
|
- ampache
|
|
|
|
ports:
|
|
- "127.0.0.1:${WEBAPP_INT_SV_PORT}:9001"
|
|
- "127.0.0.1:${WEBAPP_INT_PORT}:80"
|
|
|
|
webapp-external:
|
|
container_name: ${IMG_NAME}-external
|
|
|
|
image: ${IMG_URL}
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
- APACHE_UID=980
|
|
- APACHE_GID=977
|
|
- APACHE_DOC_ROOT=/var/www/public
|
|
- DISABLE_INOTIFYWAIT_CLEAN=1
|
|
|
|
volumes:
|
|
- ./ampache-external/config:/var/www/config
|
|
- ./ampache-external/log:/var/log/ampache
|
|
- /etc/passwd:/etc/passwd:ro
|
|
- /etc/group:/etc/group:ro
|
|
- ./media/music:/media/music
|
|
- ./media/video:/media/video
|
|
|
|
networks:
|
|
- ampache
|
|
|
|
ports:
|
|
- "127.0.0.1:${WEBAPP_EXT_SV_PORT}:9001"
|
|
- "127.0.0.1:${WEBAPP_EXT_PORT}:80"
|
|
|
|
networks:
|
|
ampache:
|
|
name: ampache
|
|
driver: bridge
|
|
driver_opts:
|
|
com.docker.network.bridge.name: br-ampache
|
|
ipam:
|
|
config:
|
|
- subnet: 10.2.33.0/24
|
|
gateway: 10.2.33.254
|