Skip to content

Commit

Permalink
fix: update db storage config
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmarcou committed Jul 30, 2024
1 parent f00cf7e commit 335c29c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
env_file:
- .env
environment:
DATABASE: /data/database.sqlite
DB_STORAGE: /data/database.sqlite
volumes:
- database-data:/data/

Expand Down
4 changes: 2 additions & 2 deletions src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import logger from '../logging';

const sequelize: Sequelize = new Sequelize({
dialect: 'sqlite',
storage: 'database.sqlite',
storage: process.env.DB_STORAGE || './database.sqlite',
logging: false,
});

Expand Down Expand Up @@ -1004,4 +1004,4 @@ export const syncDatabase = async (): Promise<void> => {
};

// export the sequelize instance
export { sequelize };
export { sequelize };

0 comments on commit 335c29c

Please sign in to comment.