File tree Expand file tree Collapse file tree 6 files changed +8
-6
lines changed Expand file tree Collapse file tree 6 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ services:
19
19
dockerfile : ./docker/api.Containerfile
20
20
# https://docs.docker.com/reference/compose-file/build/#target
21
21
target : production
22
+
23
+ entrypoint : ["/bin/sh", "-c", "replaceJwt.sh"]
22
24
# https://docs.docker.com/reference/compose-file/services/#depends_on
23
25
depends_on :
24
26
minio :
@@ -52,7 +54,7 @@ services:
52
54
- API_IS_GRAPHIQL=${API_IS_GRAPHIQL:?error}
53
55
- API_IS_PINO_PRETTY=${API_IS_PINO_PRETTY:?error}
54
56
- API_JWT_EXPIRES_IN=${API_JWT_EXPIRES_IN:?error}
55
- - API_JWT_SECRET=${REPLACE_WITH_RANDOM_JWT_TOKEN :?error}
57
+ - API_JWT_SECRET=${API_JWT_SECRET :?error}
56
58
- API_LOG_LEVEL=${API_LOG_LEVEL:?error}
57
59
- API_MINIO_ACCESS_KEY=${API_MINIO_ACCESS_KEY:?error}
58
60
- API_MINIO_END_POINT=${API_MINIO_END_POINT:?error}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ API_IS_APPLY_DRIZZLE_MIGRATIONS=true
20
20
API_IS_GRAPHIQL = false
21
21
API_IS_PINO_PRETTY = false
22
22
API_JWT_EXPIRES_IN = 2592000000
23
- API_JWT_SECRET = b4896453be722d5ca94058a73f52b31c75980b485fa6d74d91f417a8059d8731
23
+ API_JWT_SECRET = REPLACE_WITH_RANDOM_JWT_TOKEN
24
24
API_LOG_LEVEL = info
25
25
API_MINIO_ACCESS_KEY = talawa
26
26
API_MINIO_END_POINT = minio
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ API_IS_APPLY_DRIZZLE_MIGRATIONS=true
30
30
API_IS_GRAPHIQL=false
31
31
API_IS_PINO_PRETTY=false
32
32
API_JWT_EXPIRES_IN=2592000000
33
- API_JWT_SECRET=dd06f326a810d9c7dd67b1428a4caef558d9e730d25e5440945f82948a56d96cd6f972222768cd2d77c28ad833f4a4a475a9828f87ac0ac3ec94df276fe24736
33
+ API_JWT_SECRET=REPLACE_WITH_RANDOM_JWT_TOKEN
34
34
API_LOG_LEVEL=info
35
35
API_MINIO_ACCESS_KEY=talawa
36
36
API_MINIO_END_POINT=minio
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ API_IS_APPLY_DRIZZLE_MIGRATIONS=true
22
22
API_IS_GRAPHIQL=true
23
23
API_IS_PINO_PRETTY=true
24
24
API_JWT_EXPIRES_IN=2592000000
25
- API_JWT_SECRET=b4896453be722d5ca94058a73f52b31c75980b485fa6d74d91f417a8059d8731
25
+ API_JWT_SECRET=REPLACE_WITH_RANDOM_JWT_TOKEN
26
26
API_LOG_LEVEL=debug
27
27
API_MINIO_ACCESS_KEY=talawa
28
28
API_MINIO_END_POINT=minio
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ API_IS_APPLY_DRIZZLE_MIGRATIONS=true
20
20
API_IS_GRAPHIQL = false
21
21
API_IS_PINO_PRETTY = false
22
22
API_JWT_EXPIRES_IN = 2592000000
23
- API_JWT_SECRET =
23
+ API_JWT_SECRET = REPLACE_WITH_RANDOM_JWT_TOKEN
24
24
API_LOG_LEVEL = info
25
25
API_MINIO_ACCESS_KEY = talawa
26
26
API_MINIO_END_POINT = minio
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# Define the path to the compose file
4
- COMPOSE_FILE=" ./compose.yaml "
4
+ COMPOSE_FILE=" ./.env "
5
5
6
6
# Generate a random JWT-like token (modify this logic if needed)
7
7
RANDOM_TOKEN=$( openssl rand -base64 32 | tr -d ' =+/' )
You can’t perform that action at this time.
0 commit comments