Containerization
Azure Container Registry
1
3
Container Instanzen erstellen
1
Erstellen der ACI-YAML-Datei
apiVersion: 2019-12-01
location: <location>
name: <container-group-name>
properties:
imageRegistryCredentials:
- server: <registry-name>.azurecr.io
username: <service-principal-app-id>
password: <service-principal-password>
- server: index.docker.io
username: <username>
password: <personal-access-token>
containers:
- name: app
properties:
image: <registry-name>.azurecr.io/studle:latest
environmentVariables:
- name: SPRING_DATASOURCE_URL
value: jdbc:mariadb://db:3306/studle
- name: SERVER_PORT
value: '80'
resources:
requests:
cpu: 1
memoryInGb: 1
ports:
- port: 80
- name: db
properties:
image: mariadb:10.9
environmentVariables:
- name: MARIADB_ROOT_PASSWORD
value: password
- name: MARIADB_DATABASE
value: studle
resources:
requests:
cpu: 1
memoryInGb: 1
- name: aci--dns--sidecar
properties:
image: docker/aci-hostnames-sidecar:1.0
command:
- "/hosts"
- app
- db
resources:
requests:
cpu: 0.01
memoryInGb: 0.1
osType: Linuxshow
ipAddress:
type: Public
ports:
- protocol: tcp
port: 80
type: Microsoft.ContainerInstance/containerGroupsLast updated