diff --git a/detailed_guides/How to host on Azure app service.md b/detailed_guides/azure-app-service.md similarity index 69% rename from detailed_guides/How to host on Azure app service.md rename to detailed_guides/azure-app-service.md index a0dc543..aa43c1a 100644 --- a/detailed_guides/How to host on Azure app service.md +++ b/detailed_guides/azure-app-service.md @@ -1,9 +1,13 @@ + + You can choose to host the docker contained on app service so you have less maintenance, and it is also cheaper than a VM. As a student, you can get free Azure credits and you can get free Azure credits with you MSDN license if you work at a Microsoft partner. The steps are also fairly straightforward. To make it work on Azure App service follow the following steps: + + Creating the container: 1. Sign into Azure via portal.azure.com @@ -18,11 +22,13 @@ Creating the container: 10. Go to "review and create" and create the container! 11. Wait a minute until it gets provisioned. + + Configurating the container: App services makes it easy for you to add ENV files without using the CLI. We do this first -1. go to "configuration" under "settings" +1. Go to "configuration" under "settings" Enter the following env files as defined in the readme.md file in this repository: The most important application settings are: @@ -36,10 +42,13 @@ GPT_ROLES OPENAI_TOKEN HEALTH_SERVICE_ENABLED - 2. It's important to also add WEBSITES_PORT to the application settings, since we are using the port for the health check of the container. - 3. Go to "Health check" under monitoring and enter the following value: /healthz - 4. Of course, set health check to: "on" - 5. Press save. + +Health: + + 1. It's important to also add WEBSITES_PORT to the application settings, since we are using the port for the health check of the container. Use 8181. + 2. Go to "Health check" under monitoring and enter the following value: /healthz + 3. Of course, set health check to: "on" + 4. Press save. Last step: go to "deployment center" and turn off "continious deployment". This will make sure we get the latest build from docker hub when we restart the container.