Skip to content
Discussion options

You must be logged in to vote

Nevermind got it working!!

var builder = DistributedApplication.CreateBuilder(args);

var minioContainer = builder.AddContainer("minio", "minio/minio")
    .WithServiceBinding(containerPort: 9000, name: "minio-container-port", hostPort: 9000)
    .WithServiceBinding(containerPort: 9001, name: "minio-console-port", hostPort:9001)
    .WithEnvironment("MINIO_ROOT_USER", "minio")
    .WithEnvironment("MINIO_ROOT_PASSWORD", "RunningZebraMan32332#")
    .WithEnvironment("MINIO_ADDRESS", ":9000")
    .WithEnvironment("MINIO_CONSOLE_ADDRESS", ":9001")
    .WithArgs("server", "/data");

builder.AddProject<Projects.ApiWithS3>("apiwiths3");


builder.AddProject<Projects.ApiWithMinio>("apiwithminio");

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by josephaw1022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant