File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ EXPRESS_PORT=9004
55MATCHING_DB_HOSTNAME = " localhost"
66MATCHING_DB_PORT = 6379
77
8- # MATCHING_DB_USERNAME="peerprep-match-express"
9- # MATCHING_DB_PASSWORD="G7jBgyz9wGAFQ5LQ "
10- # REDIS_ARGS="--requirepass ${MATCHING_DB_PASSWORD} --user ${MATCHING_DB_USERNAME} on >password ~* allcommands --user default off nopass nocommands"
8+ MATCHING_DB_USERNAME = " peerprep-match-express"
9+ MATCHING_DB_PASSWORD = " G7jBgyz9wGAFQ5La "
10+ REDIS_ARGS = " --requirepass G7jBgyz9wGAFQ5La --user ${ MATCHING_DB_USERNAME } on >G7jBgyz9wGAFQ5La ~* allcommands --user default off nopass nocommands"
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ export const UI_HOST = process.env.PEERPREP_UI_HOST!;
44
55export const EXPRESS_PORT = process . env . EXPRESS_PORT ;
66
7- // const DB_USERNAME = process.env.MATCHING_DB_USERNAME;
8- // const DB_PASSWORD = process.env.MATCHING_DB_PASSWORD;
7+ const DB_USERNAME = process . env . MATCHING_DB_USERNAME ;
8+ const DB_PASSWORD = process . env . MATCHING_DB_PASSWORD ;
99const DB_HOSTNAME = process . env . MATCHING_DB_HOSTNAME ;
1010const DB_PORT = Number . parseInt ( process . env . MATCHING_DB_PORT ?? '6379' ) ;
11- // export const DB_URL = `redis://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:${DB_PORT}`;
12- export const DB_URL = `redis://${ DB_HOSTNAME } :${ DB_PORT } ` ;
11+ export const DB_URL = `redis://${ DB_USERNAME } :${ DB_PASSWORD } @${ DB_HOSTNAME } :${ DB_PORT } ` ;
12+ // export const DB_URL = `redis://${DB_HOSTNAME}:${DB_PORT}`;
1313
1414export const NODE_ENV = process . env . NODE_ENV ;
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ services:
3434 hostname : " match-db"
3535 image : redis/redis-stack
3636 container_name : " match-db"
37- # env_file:
38- # - ./backend/matching/.env.local
37+ env_file :
38+ - ./backend/matching/.env.local
3939 volumes :
4040 - " match-db-docker:/data"
4141 ports :
You can’t perform that action at this time.
0 commit comments