Forum Discussion

parthshukla's avatar
parthshukla
Copper Contributor
Apr 29, 2021

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

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,

For context, I am using https://www.youtube.com/watch?v=nh1ynJGJuT8&t=1897s&ab_channel=LondonAppDeveloper 

 

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

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!

No RepliesBe the first to reply

Resources