What is the base path of your application?
Depending on the base path this line could require either a second ../ or a different path.
DB_DATABASE="../db/database.sqlite"
from my docker-compose.yml
sqlite3:
image: nouchka/sqlite3:latest
stdin_open: true
tty: true
volumes:
- ./db/:/root/db/
I actually have this working in one instance, but cannot get it to work again.
I have tried:
config:clear
numerous sail build --no-cache
touched a blank file
in .env
DB_DATABASE="../db/database.sqlite"
touched database.sqlite in all database paths
blew away vendor/
copied a working database.sqlite file into the path
tried DB_DATABASE with full path
restarted Docker
All result in
Database (../db/database.sqlite) does not exist. (SQL: PRAGMA foreign_keys = ON;)
Docker Compose version v2.10.2
Laravel 9.22.1
PHP 8.1.10
Please or to participate in this conversation.