18 lines
385 B
Markdown
18 lines
385 B
Markdown
## Notes
|
|
**DO NOT** forget to create the directories before running docker-compose the
|
|
first time otherwise they'll be created with `root` permissions.
|
|
|
|
## For a persistent database
|
|
|
|
```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
|
|
```
|