-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed notifications, pglite -> postgres in a docker container
- Loading branch information
Showing
49 changed files
with
16,557 additions
and
4,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
env_file: | ||
- .env | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- ./data/postgres:/var/lib/postgresql/data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import process from 'process'; | ||
import 'dotenv/config' | ||
import { defineConfig } from 'drizzle-kit'; | ||
|
||
export default defineConfig({ | ||
schema: './src/db/schema/index.ts', | ||
out: './src/db/migrations', | ||
dialect: 'postgresql', | ||
dbCredentials: { | ||
url: 'file://data/postgresql', | ||
host: process.env.POSTGRES_HOST, | ||
port: Number(process.env.POSTGRES_PORT), | ||
user: process.env.POSTGRES_USER, | ||
password: process.env.POSTGRES_PASSWORD, | ||
database: process.env.POSTGRES_DATABASE!, | ||
}, | ||
}); |
Oops, something went wrong.