• docker-compose.yml
      webapp:
        image: examples/web
        ports:
          - "8000:8000"
        volumes:
          - "/data"
    
  • docker-compose.yml
      webapp:
        build: .
        environment:
          - DEBUG=1
    
  • docker-compose.yml
      version: "3.8"
    
      services:
        foo:
          build: .
          volumes:
            - bar