Skip to content

Instantly share code, notes, and snippets.

@doodlemania2
Created Nov 28, 2021
Embed
What would you like to do?
apiVersion: 2019-12-01
location: westus2
name: minioContainers
properties:
imageRegistryCredentials:
- server: myacr.azurecr.io
username: myusername
password: mypassword
containers:
- name: minio
properties:
image: myacr.azurecr.io/minio:latest
resources:
requests:
cpu: 1
memoryInGb: 4
ports:
- port: 9000
- port: 9001
environmentVariables:
- name: "MINIO_ROOT_USER"
value: "user"
- name: "MINIO_ROOT_PASSWORD"
value: "password"
command:
[
'minio',
'server',
'/data',
'--console-address',
':9001',
]
volumeMounts:
- name: "data"
mountPath: "/data"
readOnly: false
- name: caddy-sidecar
properties:
image: myacr.azurecr.io/caddy:latest
resources:
requests:
cpu: 1
memoryInGb: 1.5
command:
[
'caddy',
'reverse-proxy',
'--from',
'myminio.westus2.azurecontainer.io',
'--to',
'localhost:9001',
]
ports:
- port: 80
- port: 443
osType: Linux
volumes:
- name: "data"
azureFile:
shareName: "mysharename"
storageAccountName: "myaccountname"
storageAccountKey: "mykey"
ipAddress:
type: Public
ports:
- protocol: tcp
port: 80
- protocol: tcp
port: 443
dnsNameLabel: "myminio"
type: Microsoft.ContainerInstance/containerGroups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment