apiVersion: '2019-12-01'
location: westus
name: brabus-container-group
properties:
  containers:
  - name: brabus-app
    properties:
      image: ${AZURE_CONTAINER_REGISTRY_URL}/brabus-app:latest
      resources:
        requests:
          cpu: 1.0
          memoryInGB: 1.5
      ports:
      - port: 3000
      environmentVariables:
      - name: PORT
        value: '3000'
      - name: MONGODB_URI
        secureValue: ${MONGODB_URI}
      - name: JWT_SECRET
        secureValue: ${JWT_SECRET}
      - name: NODE_ENV
        value: 'production'
  - name: mongodb
    properties:
      image: mongo:latest
      resources:
        requests:
          cpu: 1.0
          memoryInGB: 1.5
      ports:
      - port: 27017
      environmentVariables:
      - name: MONGO_INITDB_ROOT_USERNAME
        secureValue: brabus_admin
      - name: MONGO_INITDB_ROOT_PASSWORD
        secureValue: ZKT_KASABUTSKI_77557755
      volumeMounts:
      - name: mongodb-data
        mountPath: /data/db
  osType: Linux
  ipAddress:
    type: Public
    ports:
    - protocol: TCP
      port: 3000
  volumes:
  - name: mongodb-data
    azureFile:
      shareName: mongodb-data
      storageAccountName: ${STORAGE_ACCOUNT_NAME}
      storageAccountKey: ${STORAGE_ACCOUNT_KEY}
tags: {}
type: Microsoft.ContainerInstance/containerGroups
