File tree Expand file tree Collapse file tree 4 files changed +5
-16
lines changed
Expand file tree Collapse file tree 4 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 88# - For local development (using existing PostgreSQL on port 5432), use 'localhost' as the hostname.
99# - For Docker Compose, use port 5433 (to avoid conflict with existing PostgreSQL) and 'db' as the hostname.
1010
11- APP_PORT = 3000
11+ APP_PORT = 9000
1212NODE_ENV = development
13-
14- DB_PORT = 5433
15- DB_HOST = localhost
16- POSTGRES_USER = myuser
17- POSTGRES_PASSWORD = mypassword
18- POSTGRES_DB = mydb
19-
20- DATABASE_URL = postgresql://${ POSTGRES_USER } :${ POSTGRES_PASSWORD } @${ DB_HOST } :${ DB_PORT } /${ POSTGRES_DB }
13+ DATABASE_URL = postgresql://myuser:mypassword@localhost:5433/mydb
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ services:
55 env_file :
66 - .env
77 ports :
8- - " ${DB_PORT} :5432"
8+ - " 5433 :5432"
99 volumes :
1010 - db_data:/var/lib/postgresql/data
1111
Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ export default defineConfig({
55 out : "./drizzle" ,
66 dialect : "postgresql" ,
77 dbCredentials : {
8- host : process . env . DB_HOST || "localhost" ,
9- port : parseInt ( process . env . DB_PORT || "5432" ) ,
10- user : process . env . POSTGRES_USER || "myuser" ,
11- password : process . env . POSTGRES_PASSWORD || "mypassword" ,
12- database : process . env . POSTGRES_DB || "mydb" ,
8+ url : process . env . DATABASE_URL ! ,
139 } ,
1410} ) ;
Original file line number Diff line number Diff line change 2323 "@types/bun" : " latest" ,
2424 "drizzle-kit" : " ^0.31.7"
2525 }
26- }
26+ }
You can’t perform that action at this time.
0 commit comments