# 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