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}
- joomla-db:/var/lib/mysql
image: joomla:4.3.1 # https://hub.docker.com/_/joomla
JOOMLA_DB_HOST: mariadb
JOOMLA_DB_USER: ${MYSQL_USER}
JOOMLA_DB_PASSWORD: ${MYSQL_PASSWORD}
JOOMLA_DB_NAME: ${MYSQL_DATABASE}
- ./html:/var/www/html
ports:
- "8000:80"
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest # https://hub.docker.com/_/phpmyadmin
PMA_USER: ${MYSQL_USER}
PMA_PASSWORD: ${MYSQL_PASSWORD}
PMA_HOST: mariadb
UPLOAD_LIMIT: '200M'
- "8001:80"
mailhog:
image: 'mailhog/mailhog:latest' # https://hub.docker.com/r/mailhog/mailhog
- "1025:1025"
- "8002:8025"