Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
chore: update env vars in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
relby committed Feb 2, 2024
1 parent a7672a4 commit d09ce94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,16 @@ services:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}

JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRES_IN: ${JWT_EXPIRES_IN}
JWT_ACCESS_SECRET: ${JWT_ACCESS_SECRET}
JWT_ACCESS_EXPIRES_IN: ${JWT_ACCESS_EXPIRES_IN}
JWT_REFRESH_SECRET: ${JWT_REFRESH_SECRET}
JWT_REFRESH_EXPIRES_IN: ${JWT_REFRESH_EXPIRES_IN}

CENTRIFUGO_API_URL: http://centrifugo:${CENTRIFUGO_PORT}/api
CENTRIFUGO_API_KEY: ${CENTRIFUGO_API_KEY}
CENTRIFUGO_TOKEN_HMAC_SECRET_KEY: ${CENTRIFUGO_TOKEN_HMAC_SECRET_KEY}
CENTRIFUGO_CONNECTION_TOKEN_EXPIRES_IN: ${CENTRIFUGO_CONNECTION_TOKEN_EXPIRES_IN}
CENTRIFUGO_SUBSCRIPTION_TOKEN_EXPIRES_IN: ${CENTRIFUGO_SUBSCRIPTION_TOKEN_EXPIRES_IN}
depends_on:
- postgres
- centrifugo
Expand Down
2 changes: 1 addition & 1 deletion src/infra/config/validation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IsEnum, IsOptional, IsString, IsUrl, validateSync } from 'class-validator';
import { IsEnum, IsOptional, IsString, validateSync } from 'class-validator';
import { plainToInstance } from 'class-transformer';
import { IsPortNumber } from 'src/common/decorators/is-port-number.decorator';

Expand Down

0 comments on commit d09ce94

Please sign in to comment.