2019-02-25 14:26:11 +00:00
|
|
|
## Notes
|
|
|
|
**DO NOT** forget to create the directories before running docker-compose the
|
2020-05-11 19:34:11 +00:00
|
|
|
first time otherwise they'll be created with `root` permissions.
|
2019-02-25 14:26:11 +00:00
|
|
|
|
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
|
|
|
|
```
|