Fix database volume mount to use app directory
This commit is contained in:
@@ -24,7 +24,7 @@ let db: any;
|
||||
|
||||
async function connectToDatabase() {
|
||||
try {
|
||||
// Ensure database directory exists with proper permissions
|
||||
// Database file will be in the app directory
|
||||
const dbPath = path.join(__dirname, '../database.sqlite');
|
||||
|
||||
db = await open({
|
||||
|
||||
@@ -7,7 +7,7 @@ services:
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- data:/app/database.sqlite
|
||||
- data:/app
|
||||
- uploads:/app/uploads
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
|
||||
Reference in New Issue
Block a user