Skip to content

Commit 1891ede

Browse files
author
mikespub
committed
example of multicontainer web app on azure
1 parent 3e6b67f commit 1891ede

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docker-compose.azure.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# https://docs.microsoft.com/en-us/azure/app-service/containers/quickstart-multi-container
2+
# https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-multi-container-app
3+
#
4+
# Create multicontainer web app:
5+
# az webapp create --resource-group $AZURE_RESOURCE_GROUP --plan $AZURE_APP_SERVICE_PLAN --name <app-name> --multicontainer-config-type compose --multicontainer-config-file docker-compose.azure.yml
6+
# Update multicontainer web app:
7+
# az webapp config container set --resource-group $AZURE_RESOURCE_GROUP --name <app-name> --multicontainer-config-type compose --multicontainer-config-file docker-compose.azure.yml
8+
version: '3.6'
9+
services:
10+
web:
11+
image: mikespub/quickstart-python
12+
links:
13+
- redis
14+
ports:
15+
- "5080:5080"
16+
environment:
17+
- FLASK_PORT=5080
18+
- FLASK_HOST=0.0.0.0
19+
restart: always
20+
redis:
21+
image: redis
22+
restart: always

0 commit comments

Comments
 (0)