version: '3' services: wordpress: image: wordpress ports: - "80:80" environment: WORDPRESS_DEBUG: 1 WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: password WORDPRESS_DB_NAME: wordpress WORDPRESS_CONFIG_EXTRA: | define( 'WP_ENVIRONMENT_TYPE', 'local' ); volumes: - ./wordpress:/var/www/html db: image: mysql:latest environment: MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: password MYSQL_RANDOM_ROOT_PASSWORD: '1' volumes: - ./db:/var/lib/mysql phpmyadmin: image: phpmyadmin/phpmyadmin ports: - "8181:80" environment: PMA_ARBITRARY: 1 PMA_HOST: db PMA_USER: wordpress PMA_PASSWORD: password volumes: wordpress: db: