--- version: "3" services: wordpress: image: "thecoopcloud/wordpress:5.8.2-php7.4" build: . ports: - "80:80" volumes: - "./bedrock/:/var/www/html/" - "./entrypoint-wordpress.sh:/usr/local/bin/entrypoint-wordpress.sh" environment: - WORDPRESS_DB_HOST=db - WORDPRESS_DB_USER=wordpress - WORDPRESS_DB_PASSWORD=wordpress - WORDPRESS_DB_NAME=wordpress - WORDPRESS_CONFIG_EXTRA=${WORDPRESS_CONFIG_EXTRA} - WORDPRESS_DEBUG=${WORDPRESS_DEBUG} - PHP_EXTENSIONS container_name: "${PROJECT_NAME}_wordpress" db: image: "mariadb:10.6" volumes: - "mariadb:/var/lib/mysql" environment: - MYSQL_ROOT_PASSWORD=wordpress - MYSQL_DATABASE=wordpress - MYSQL_USER=wordpress - MYSQL_PASSWORD=wordpress container_name: "${PROJECT_NAME}_db" volumes: mariadb: networks: backend: