Skip to content

Commit 71d3dbe

Browse files
committed
fix: update DATABASE_URL in docker-compose.yml to use service name for database connection
1 parent 6b05bbf commit 71d3dbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ services:
66
ports:
77
- "3000:3000"
88
environment:
9-
DATABASE_URL: postgresql://postgres:letmein@localhost:5432/postgres?schema=public
9+
DATABASE_URL: postgresql://postgres:letmein@db:5432/postgres?schema=public
1010
depends_on:
1111
- db
1212

1313
db:
1414
image: postgres:latest
1515
environment:
16-
# POSTGRES_USER: postgres
16+
POSTGRES_USER: postgres
1717
POSTGRES_PASSWORD: letmein
1818
POSTGRES_DB: postgres
1919
ports:

0 commit comments

Comments
 (0)