ampache/compose.yaml
Arnaud G. GIBERT b7ba76ef53 - Switch to rx3/php-apache-mga9:1.3.0 image,
- Configure php.ini,
- Update compose & Dockerfile.
2024-08-27 00:04:39 +02:00

102 lines
2.4 KiB
YAML

# Rx3 Ampache Mageia-9 Docker Image
#-------------------------------------------------------------------------------
name: ${IMG_NAME}
services:
database:
container_name: ${IMG_NAME}-mysql
image: mariadb:11.4.3-ubi9
environment:
MARIADB_ROOT_PASSWORD: mysqladmin
MARIADB_DATABASE: ampache
MARIADB_USER: ampache
MARIADB_PASSWORD: ampacheadmin
MARIADB_ROOT_HOST: '%' # needs to be enclosed with quotes
user: "983:981"
volumes:
- ./mysql:/var/lib/mysql
networks:
- ampache
webapp-internal:
container_name: ${IMG_NAME}-internal
image: docker.xor.rx3:5000/rx3/${IMG_NAME}:${IMG_VERSION}
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:9085:9001"
- "127.0.0.1:8085:80"
webapp-external:
container_name: ${IMG_NAME}-external
image: docker.xor.rx3:5000/rx3/${IMG_NAME}:${IMG_VERSION}
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:9086:9001"
- "127.0.0.1:8086: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