Skip to content

Commit b28aea0

Browse files
committed
Adds instructions to README about persistent mysql data
1 parent 36ab7d6 commit b28aea0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,15 @@ Containers created and their ports (if used) are as follows:
2222
- **npm**
2323
- **composer**
2424
- **artisan**
25+
26+
## Persistant MySQL Storage
27+
28+
By default, whenever you bring down the docker-compose network, your MySQL data will be removed after the containers are destroyed. If you would like to have persistant data that remains after bringing containers down and back up, do the following:
29+
30+
1. Create a `mysql` folder in the project root, alongside the `nginx` and `src` folders.
31+
2. Under the mysql service in your `docker-compose.yml` file, add the following lines:
32+
33+
```
34+
volumes:
35+
- ./mysql:/var/lib/mysql
36+
```

0 commit comments

Comments
 (0)