File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed
packages/form-manager/src Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ FUSIONAUTH_APP_MEMORY=512M
77
88MINIO_USERNAME = workflow-dev
99MINIO_PASSWORD = workflow-dev
10+ MINIO_BUCKETNAME = affiliationbucket
1011
1112# central envs
1213CENTRAL_USER_EMAIL = chakshu@samagragovernance.in
Original file line number Diff line number Diff line change @@ -29,7 +29,12 @@ tasks:
2929 openMode : tab-after
3030 init : |
3131 gp sync-await setup
32+ source .env
33+ docker run --name enketo-redis-main -p 6369:6379 -d redis
3234 cd packages/form-manager
35+ echo "MINIO_USERNAME=$MINIO_USERNAME" >> .env
36+ echo "MINIO_PASSWORD=$MINIO_PASSWORD" >> .env
37+ echo "MINIO_BUCKETNAME=$MINIO_BUCKETNAME" >> .env
3338 nvm use 16
3439 pnpm install
3540 command : |
Original file line number Diff line number Diff line change @@ -136,12 +136,25 @@ services:
136136 - " 9000:9000"
137137 - " 9001:9001"
138138 volumes :
139- - ./mnt/cqube_bucket/ minio:/data
139+ - minio-data :/data
140140 environment :
141141 MINIO_ROOT_USER : ${MINIO_USERNAME}
142142 MINIO_ROOT_PASSWORD : ${MINIO_PASSWORD}
143143 command : server --console-address ":9001" /data
144144
145+ createbuckets :
146+ image : minio/mc
147+ depends_on :
148+ - minio
149+ entrypoint : >
150+ /bin/sh -c "
151+ /usr/bin/mc config host add myminio http://minio:9000 ${MINIO_USERNAME} ${MINIO_PASSWORD};
152+ /usr/bin/mc rm -r --force myminio/${MINIO_BUCKETNAME};
153+ /usr/bin/mc mb myminio/${MINIO_BUCKETNAME};
154+ /usr/bin/mc policy download myminio/${MINIO_BUCKETNAME};
155+ exit 0;
156+ "
157+
145158networks :
146159 db_net :
147160 driver : bridge
@@ -152,5 +165,6 @@ networks:
152165volumes :
153166 db_data :
154167 search_data :
168+ minio-data :
155169 fa-config :
156170 minio_storage : {}
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { AppController } from './app.controller';
33import { AppService } from './app.service' ;
44import { ConfigModule , ConfigService } from '@nestjs/config' ;
55import { redisStore } from 'cache-manager-redis-store' ;
6- import type { RedisClientOptions } from 'redis' ;
76
87@Module ( {
98 imports : [
You can’t perform that action at this time.
0 commit comments