Skip to content

Commit 218d776

Browse files
committed
PEER-117: Change ports/db
1 parent f1994fc commit 218d776

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

backend/question/docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- 'question-db-docker:/data/question-db'
1616
# - ./init.sql:/docker-entrypoint-initdb.d/init.sql
1717
ports:
18-
- '5430:5432'
18+
- '5433:5432'
1919
restart: unless-stopped
2020

2121
express:
@@ -32,6 +32,5 @@ services:
3232
postgres:
3333
condition: service_started
3434
restart: true
35-
3635
volumes:
3736
question-db-docker:

backend/question/drizzle.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export default defineConfig({
66
dialect: 'postgresql',
77
dbCredentials: {
88
host: 'localhost',
9-
port: 5431,
10-
database: 'template',
9+
port: 5433,
10+
database: 'Question',
1111
user: 'user',
1212
password: 'user',
1313
},

backend/question/drizzle.migrate.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { migrate } from 'drizzle-orm/postgres-js/migrator';
55
const user = 'user';
66
const password = 'user';
77
const url = 'localhost';
8-
const database = 'template';
9-
const port = 5431;
8+
const database = 'Question';
9+
const port = 5433;
1010

1111
const CONNECTION_STRING = `postgresql://${user}:${password}@${url}:${port}/${database}`;
1212

backend/question/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "template",
2+
"name": "question",
33
"version": "1.0.0",
44
"main": "dist/index.js",
55
"scripts": {

backend/question/src/lib/db/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import postgres from 'postgres';
33

44
const queryClient = postgres({
55
host: 'localhost',
6-
port: 5430,
7-
database: 'template',
6+
port: 5433,
7+
database: 'Question',
88
user: 'user',
99
password: 'user',
1010
});

0 commit comments

Comments
 (0)