-1

I containerized an app that has two servers to run: rasa and action_server. I used docker-compose to build the images and then pushed them to Azure Registery Container. I run the images locally from Azure Registry Container and works fine on localhost. However, when I deployed the app on Azure App Services, the app restarts with an error.

2022-11-04T17:57:56.583Z ERROR - Start multi-container app failed
2022-11-04T17:57:56.593Z INFO  - Stopping site demosite because it failed during startup.
2022-11-04T18:01:36.904Z INFO  - Starting multi-container app..
2022-11-04T18:01:36.910Z ERROR - Exception in multi-container config parsing: Exception: System.InvalidCastException, Msg: Unable to cast object of type 'YamlDotNet.RepresentationModel.YamlScalarNode' to type 'YamlDotNet.RepresentationModel.YamlMappingNode'.
2022-11-04T18:01:36.911Z ERROR - Start multi-container app failed
2022-11-04T18:01:36.914Z INFO  - Stopping site demosite because it failed during startup.

docker-compose.yaml

version: '3'
services:
    rasa:
      container_name: "rasa_server"
      user: root
      build:
        context:  .
      volumes:
      - "./:/app"
      ports:
        - "80:80"
    action_server:
      container_name: "action_server"
      build:
        context: actions
      volumes:
        - ./actions:/app/actions
        - ./data:/app/data
      ports:
        - "5055:5055"

I tried to make another app but the problem remains.

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
Shaida Muhammad
  • 1,428
  • 14
  • 25

1 Answers1

0

As stated in the documentation, build is unsupported. You need to modify your compose file to reference the images stored in ACR.

Also, App Service only listens on port 80/443 so you can't expose your action_server on port 5055.

CSharpRocks
  • 6,791
  • 1
  • 21
  • 27