Update database configuration in docker-compose.yml
This commit is contained in:
@@ -1,9 +1,17 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgresql://seanmorley15:PO24VjITwGgk@ep-withered-violet-a5xm4eqj.us-east-2.aws.neon.tech/1?sslmode=require
|
- DATABASE_URL=postgres://adventurelog:PO24VjITwGgk@db:5432/adventurelog
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
db:
|
||||||
|
image: postgres
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: adventurelog
|
||||||
|
POSTGRES_PASSWORD: PO24VjITwGgk
|
||||||
|
POSTGRES_DB: adventurelog
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
|||||||
Reference in New Issue
Block a user