docker-compose wordpress

Posted carl007

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker-compose wordpress相关的知识,希望对你有一定的参考价值。

https://hub.docker.com/_/wordpress

version: ‘3‘ services: wordpress: image: wordpress restart: always ports: - 8080:80 environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: exampleuser WORDPRESS_DB_PASSWORD: examplepass WORDPRESS_DB_NAME: exampledb volumes: - wordpress:/var/www/html db: image: mysql:5.7 restart: always environment: MYSQL_DATABASE: exampledb MYSQL_USER: exampleuser MYSQL_PASSWORD: examplepass MYSQL_RANDOM_ROOT_PASSWORD: ‘1‘ volumes: - db:/var/lib/mysql volumes: wordpress: db:

以上是关于docker-compose wordpress的主要内容,如果未能解决你的问题,请参考以下文章

docker-compose构建wordpress

Docker-compose部署wordpress

使用docker-compose部署WordPress项目

docker-compose wordpress

畅享docker-compose之旅及编排wordpress报错解决

docker-compose wordpress mysql连接被拒绝