diff --git a/backend/src/tasks/s3-client.ts b/backend/src/tasks/s3-client.ts index c248bc2e..cecac456 100644 --- a/backend/src/tasks/s3-client.ts +++ b/backend/src/tasks/s3-client.ts @@ -11,16 +11,14 @@ class S3Client { isLocal: boolean; constructor(isLocal?: boolean) { - // TODO: Remove once minio service is fixed - // this.isLocal = - // isLocal ?? - // (process.env.IS_OFFLINE || process.env.IS_LOCAL ? true : false); + this.isLocal = + isLocal ?? + (process.env.IS_OFFLINE || process.env.IS_LOCAL ? true : false); if (this.isLocal) { - // TODO: Remove once minio service is fixed - // this.s3 = new S3({ - // endpoint: 'http://minio:9000', - // s3ForcePathStyle: true - // }); + this.s3 = new S3({ + endpoint: 'http://minio:9000', + s3ForcePathStyle: true + }); } else { const agent = new https.Agent({ keepAlive: false diff --git a/docker-compose.yml b/docker-compose.yml index 151ee3cc..bc2c9ca4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -56,7 +56,7 @@ services: - MINIO_ACCESS_KEY=aws_access_key - MINIO_SECRET_KEY=aws_secret_key logging: - driver: none + driver: json-file docs: build: