Arnaud G. GIBERT
211e478aaf
- 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, - local directory normalization, - fix ampache.cfg.php.dist initialization.
107 lines
2.6 KiB
YAML
107 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:
|
|
- ./var/lib/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: ${APACHE_UID}
|
|
APACHE_GID: ${APACHE_GID}
|
|
APACHE_DOC_ROOT: ${APACHE_DOC_ROOT}
|
|
|
|
volumes:
|
|
- ./etc/ampache-internal:/var/www/config
|
|
- ./var/log/ampache-internal:/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
|
|
- ./opt/music:/media/music
|
|
- ./opt/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: ${APACHE_UID}
|
|
APACHE_GID: ${APACHE_GID}
|
|
APACHE_DOC_ROOT: ${APACHE_DOC_ROOT}
|
|
|
|
volumes:
|
|
- ./etc/ampache-external:/var/www/config
|
|
- ./var/log/ampache-external:/var/log/ampache
|
|
- /etc/passwd:/etc/passwd:ro
|
|
- /etc/group:/etc/group:ro
|
|
- /etc/shadow:/etc/shadow:ro
|
|
- ./opt/music:/media/music
|
|
- ./opt/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
|