Computer scienceBackendFlaskApplication ArchitectureDeploying the application

Production-ready application

Compose a compose file

Report a typo

Let's check if you got the docker-compose container declaration principles correct. Arrange the following lines in the right order so docker-compose.yml will pass validation.

TIP: There are no strict requirements so for the sake of task and style let's agree that statements from the same level should be in the following order: build, ports, then volumes. Place the options(aka anything after colon) on the following line.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                - '80:80'
              
                build:
              
                services:
              
                volumes:
              
                ports:
              
                - data:/opt/tasks/flask
              
                python_server:
              
                python:3.10
              
___

Create a free account to access the full topic