
Upload image with NestJS Minio S3
MinIO - is a cloud-native object store built to run on any infrastructure - public, private or edge clouds. Primary use cases include data lakes, databases, AI/ML, SaaS applications and fast backup & recovery. MinIO is dual licensed under GNU AGPL v3 and commercial license. To learn more, visit www.min.io . Download package nestjs-minio-s3 . Set docker environment variables: `POSTGRES_USER="admin" POSTGRES_PASSWORD="admin" POSTGRES_DB="nestjs" MINIO_ROOT_USER="minioadmin" MINIO_ROOT_PASSWORD="minioadmin"` Add Minio container in Docker Compose: `services: db: container_name: db image: postgres:latest ports: '5432:5432' env_file: .docker.env volumes: postgres:/data/postgres minio: image: minio/minio:latest container_name: minio ports: '9000:9000' '9001:9001' env_file: .docker.env command: server /data --console-address ":9001" volumes: minio:/data healthcheck: test: ["CMD", "curl", "-f", " http://localhost:9000/minio/health/live" ] interval: 30s timeout: 20s retries: 3 volumes: postgres:
Continue reading on Dev.to Tutorial
Opens in a new tab


