Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1425858
Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 7 years ago.
Improve this questionQuickstart: Compose and WordPress proposes the following docker-compose.yml
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- dbdata:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
volumes:
dbdata:
For persisting database data, a volume is created:
- The docker volume
db_data
persists any updates made by Wordpress to the database.
but nothing is mentioned about the wordpress container...
Questions:
- should I follow the same approach and create volumes for the
wordpress
container, in order to persist the data that are going to be added (by posts, uploads, themes)? - If yes, which paths / directories should I point to?
Update
本文标签: customizationVolume mounts when setting up Wordpress with docker
版权声明:本文标题:customization - Volume mounts when setting up Wordpress with docker 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745414582a2657622.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论