Skip to content

Instantly share code, notes, and snippets.

@doodlemania2
Created November 28, 2021 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doodlemania2/ee73a20dd9b96b7093eca9b6561633f8 to your computer and use it in GitHub Desktop.
Save doodlemania2/ee73a20dd9b96b7093eca9b6561633f8 to your computer and use it in GitHub Desktop.
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