i am getting error in Azure container service for creating caddy container.
reading config file: open /etc/caddy/Caddyfile: no such file or directory.
my yaml file is
location: centralindia
name: app-with-ssl
apiVersion: “2021-10-01”
properties:
containers:
-
name: reverse-proxy
properties:
image: caddy:latest
ports:- port: 443
protocol: TCP - port: 80
protocol: TCP
resources:
requests:
memoryInGB: 1
cpu: 1
limits:
memoryInGB: 1
cpu: 1
volumeMounts: # Array of volume mounts for the instance- name: proxy-caddyfile
mountPath: /etc/caddy - name: proxy-data
mountPath: /data - name: proxy-config
mountPath: /config
- name: proxy-caddyfile
- port: 443
-
name: data-api-builder
properties:
image: Microsoft Artifact Registry
ports:- port: 5000
protocol: TCP
resources:
requests:
memoryInGB: 1
cpu: 1
limits:
memoryInGB: 1
cpu: 1
volumeMounts:- name: dab-config
mountPath: /dab-config
environmentVariables: - name: ASPNETCORE_LOGGING__CONSOLE__DISABLECOLORS
value: true
command: - dotnet
- Azure.DataApiBuilder.Service.dll
- –ConfigFileName
- /dab-config/dab-config.json
- name: dab-config
- port: 5000
ipAddress:
ports:
- protocol: TCP
port: 80
- protocol: TCP
port: 443
type: Public
dnsNameLabel: beansitdatapreservessl
osType: Linux
volumes:
- name: proxy-caddyfile
azureFile:
shareName: proxy-caddyfile
storageAccountName: btdataapibuilderssl
storageAccountKey: vOSVxaXgxRQ3D1mN5ZW6hi3S2LaOhBH/+USQdoEVrpfX1KcoDUmgKQzcz/Jh8jcSmn5+gcNofZBf+AStxS81vw==
- name: proxy-data
azureFile:
shareName: proxy-data
storageAccountName: btdataapibuilderssl
storageAccountKey: Thny0/3aS/vgAXFEVxOsjX/Cc7wLCgu7aJXrO3xrGYcpN5UzW/F7vvb8iYlfOmo8AomRIS75SVi5+AStwyfF0Q==
- name: proxy-config
azureFile:
shareName: proxy-config
storageAccountName: btdataapibuilderssl
storageAccountKey: Thny0/3aS/vgAXFEVxOsjX/Cc7wLCgu7aJXrO3xrGYcpN5UzW/F7vvb8iYlfOmo8AomRIS75SVi5+AStwyfF0Q==
- name: dab-config
azureFile:
shareName: dab-config
storageAccountName: btdataapibuilderssl
storageAccountKey: Thny0/3aS/vgAXFEVxOsjX/Cc7wLCgu7aJXrO3xrGYcpN5UzW/F7vvb8iYlfOmo8AomRIS75SVi5+AStwyfF0Q==