2019-02-25 14:26:11 +00:00
|
|
|
## Notes
|
|
|
|
**DO NOT** forget to create the directories before running docker-compose the
|
|
|
|
first time otherwise they'll be created with `root` permissions and cause
|
|
|
|
everything to go to shit.
|
|
|
|
|
2019-02-25 21:22:17 +00:00
|
|
|
## For a persistent database
|
2019-02-25 14:26:11 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
# create empty database file on host
|
|
|
|
mkdir storage
|
|
|
|
touch storage/database.sqlite
|
|
|
|
|
|
|
|
# start container
|
|
|
|
docker-compose up -d
|
|
|
|
|
|
|
|
# provision database
|
|
|
|
docker-compose exec web php artisan october:up
|
|
|
|
```
|