Add wp_data volume

My best guess at this issue #15677
This commit is contained in:
Emmanuel Adumbire 2022-09-16 23:13:56 -04:00 committed by GitHub
parent 2892e90b7a
commit a795d3740f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,8 @@ Compose to set up and run WordPress. Before starting, make sure you have
- 33060 - 33060
wordpress: wordpress:
image: wordpress:latest image: wordpress:latest
volumes:
- wp_data:/var/www/html
ports: ports:
- 80:80 - 80:80
restart: always restart: always
@ -68,6 +70,7 @@ Compose to set up and run WordPress. Before starting, make sure you have
- WORDPRESS_DB_NAME=wordpress - WORDPRESS_DB_NAME=wordpress
volumes: volumes:
db_data: db_data:
wp_data:
``` ```
> **Notes**: > **Notes**: