Skip to content

Commit b03e9cf

Browse files
committed
Fixing database seeding bug
1 parent f212e15 commit b03e9cf

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ POSTGRES_USER=
22
POSTGRES_PASSWORD=
33
POSTGRES_DB=
44
DATABASE_URL=
5-
PORT=
5+
SERVER_PORT=
66
VITE_SERVER_URL=

docker-compose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ services:
88
POSTGRES_USER: "${POSTGRES_USER}"
99
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
1010
POSTGRES_DB: ${POSTGRES_DB}
11-
volumes:
12-
- ./docker_test_db:/var/lib/postgresql/data
1311
healthcheck:
1412
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'"]
1513
interval: 5s
@@ -26,7 +24,7 @@ services:
2624
command: bash -c "npx prisma migrate reset --force && npm start"
2725
environment:
2826
DATABASE_URL: "${DATABASE_URL}"
29-
PORT: "${PORT}"
27+
PORT: "${SERVER_PORT}"
3028
depends_on:
3129
postgres:
3230
condition: service_healthy
@@ -37,6 +35,6 @@ services:
3735
dockerfile: Dockerfile
3836
command: bash -c "npm run preview"
3937
ports:
40-
- "4174:4173"
38+
- "4172:4173"
4139
depends_on:
4240
- server

0 commit comments

Comments
 (0)