--- version: "3" services: wordpress: image: "wordpress:6.2.0" ports: - "80:80" dns: 4.2.2.4 volumes: - "./entrypoint.sh:/usr/local/bin/entrypoint.sh:z" - "./mailhog-smtp.php:/var/www/html/wp-content/mu-plugins/mailhog-smtp.php:z" - "./wp-content:/var/www/html/wp-content/:z" - "./composer.json:/var/www/html/composer.json:z" - "./composer.lock:/var/www/html/composer.lock:z" entrypoint: ["/usr/local/bin/entrypoint.sh"] networks: - backend environment: - WORDPRESS_DB_HOST=${WORDPRESS_DB_HOST:-db} - WORDPRESS_DB_USER=${WORDPRESS_DB_USER:-wordpress} - WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD:-wordpress} - WORDPRESS_DB_NAME=wordpress - WORDPRESS_CONFIG_EXTRA=${WORDPRESS_CONFIG_EXTRA} - WORDPRESS_DEBUG=${WORDPRESS_DEBUG} - PHP_EXTENSIONS=calendar - PAGER=more container_name: "${PROJECT_NAME}_wordpress" db: image: "mariadb:10.6" volumes: - "${MARIADB_VOLUME:-mariadb}:/var/lib/mysql" networks: - backend environment: - MYSQL_ROOT_PASSWORD=wordpress - MYSQL_DATABASE=wordpress - MYSQL_USER=wordpress - MYSQL_PASSWORD=wordpress container_name: "${PROJECT_NAME}_db" mailhog: image: "mailhog/mailhog" networks: - backend ports: - "8025:8025" container_name: "${PROJECT_NAME}_mailhog" volumes: mariadb: networks: backend: