我有自己的docker-compose文件供wordpress使用。它工作正常,但是即使以管理员身份登录也可以访问插件和外观。我该如何解决这个问题? 这是我的docker-compose文件:
version: '3.1'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "80:80"
volumes:
- ./wp-content:/var/www/html/wp-content
- ./upload.ini:/var/www/html/upload.ini
- ./.htaccess:/var/www/html/.htaccess
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
db_data: {}