Flask+Botfront UI in docker

I want to run flask+botfront UI in docker. so I tried to run in local it works and after I have tried in docker but not able to run. all services are running in docker but app server is not visible on mentioned address.

Dockerfile:
FROM rasa/rasa-sdk:2.8.0
COPY . /app
WORKDIR /app
USER root
RUN pip3 install -r requirements.txt
USER 1001

Dockercompose.yml: version: “3.0”
services:
rasa-flask:
build:
context: .
container_name: rasa-flask
volumes:
- ./:/app/
ports:
- 5000:5000
entrypoint: python
command: app.py
depends_on:
- rasa
- action-server1
rasa:
container_name: rasa
image: rasa/rasa:2.8.0-full
ports:
- 5005:5005
volumes:
- ./:/app
command:
- run
- -m
- models
- --enable-api
- --cors
- “*”
depends_on:
- action-server1
action-server1:
container_name: action-server1
image: rasa/rasa-sdk:2.8.0
volumes:
- ./actions:/app/actions
ports:
- 5055:5055

@Shan share snippet code of botfront also in above post.

@Shan Can you please see this Github Link and change the part of Flask and Botfront, GitHub - rsykoss/rasa-chatbot-webchat-deployment: Tutorial on creating and deploying chatbot locally using open source RASA. Uses chat widget with flask and ngrok. as per your need.

thanks @nik202 I’ll try and let you know

@Shan Ok, Good Luck!

Hi Nik, I made some changes in html and requirements by following that link and now it works. Thank you.

@Shan Great! :handshake: Shan, Please close the thread with the solution for others and for future reference.

@nik202 Hi Nik, sure I’ll do. one more issue everything works fine but I got this error.