version: '3.8' volumes: joomla-db: joomla: networks: default: external: name: ${NETWORKNAME} services: mariadb: image: mariadb:10.7.1 # https://hub.docker.com/_/mariadb restart: always environment: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} MYSQL_USER: ${MYSQL_USER} MYSQL_PASSWORD: ${MYSQL_PASSWORD} MYSQL_DATABASE: ${MYSQL_DATABASE} volumes: - joomla-db:/var/lib/mysql joomla: image: joomla:4.3.1 # https://hub.docker.com/_/joomla restart: always environment: JOOMLA_DB_HOST: mariadb JOOMLA_DB_USER: ${MYSQL_USER} JOOMLA_DB_PASSWORD: ${MYSQL_PASSWORD} JOOMLA_DB_NAME: ${MYSQL_DATABASE} volumes: - ./html:/var/www/html ports: - "8000:80" phpmyadmin: image: phpmyadmin/phpmyadmin:latest # https://hub.docker.com/_/phpmyadmin environment: PMA_USER: ${MYSQL_USER} PMA_PASSWORD: ${MYSQL_PASSWORD} PMA_HOST: mariadb UPLOAD_LIMIT: '200M' ports: - "8001:80" mailhog: image: 'mailhog/mailhog:latest' # https://hub.docker.com/r/mailhog/mailhog ports: - "1025:1025" - "8002:8025"