wordpress 搭建
Github下载文件 git clone https://github.com/kefins/docker_wpress.git wpress 修改文件 cd wpress vi docker-compose.yml 修改1个地方image: wordpress:php7.4-fpm version: '3' services: mysql: image: mariadb container_name: mariadb ports: - '3306:3306' volumes: - ./sqldb:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=UNJ^)-+566YYunfn - MYSQL_DATABASE=wordpress - MYSQL_USER=wordpress - MYSQL_PASSWORD=aqwe8662 networks: - backend restart: always wordpress: depends_on: - mysql image: wordpress:php7.4-fpm container_name: wordpress ports: - '9000:9000' volumes: #- ./php-fpm:/usr/local/etc/php-fpm.d - ./www:/var/www/html environment: - WORDPRESS_DB_NAME=wordpress - WORDPRESS_TABLE_PREFIX=wp_ - WORDPRESS_DB_HOST=mysql:3306 - WORDPRESS_DB_USER=wordpress - WORDPRESS_DB_PASSWORD=aqwe558123 links: - mysql networks: - frontend - backend restart: always nginx: image: nginx:latest container_name: nginx ports: - '80:80' - "443:443" volumes: - ....