How to deploy a docker app and a proxy service on Azure?

Copper Contributor

Hello, I am new to docker and azure.

 

I am trying to deploy a docker web app. I am using docker-compose to build an app and a proxy. Here is the docker-compose file.

 

 

version: '3.7'

services: 
    app:
        build: 
            context: .
        volumes: 
            - static_data:/vol/web
        environment:
            - SECRET_KEY=samplesecretkey123
            - ALLOWED_HOSTS=127.0.0.1,localhost
    
    proxy:
        build: 
            context: ./proxy
        volumes: 
            - static_data:/vol/static
        ports: 
            - "8080:8080"
        depends_on: 
            - app

volumes: 
    static_data:

 

Here is the folder structure,

Screenshot from 2021-04-29 20-13-16.png

For context, I am using this tutorial 

 

Docker-compose works perfectly on my system and the images look like this

Screenshot from 2021-04-29 20-18-56.png

I am aware of web apps for container, but I can't seem to understand how to deploy my project on Azure. Any help would be appreciated.

Please let me know if you need to see any other part of my code. 

Thanks in advance!

0 Replies