mirror of https://github.com/docker/docs.git
parent
2892e90b7a
commit
a795d3740f
|
@ -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**:
|
||||||
|
|
Loading…
Reference in New Issue