ampache/compose.yaml

106 lines
2.5 KiB
YAML
Raw Normal View History

# Rx3 Ampache Mageia-9 Docker Image
#-------------------------------------------------------------------------------
name: ${IMG_NAME}
services:
database:
container_name: ${IMG_NAME}-mysql
image: ${IMG_URL_PREFIX}/mariadb-mga9:1.0.1
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:9006:9001"
- "127.0.0.1:8006: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:9085:9001"
- "127.0.0.1:8085: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: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