| 1 | version: "3" |
| 2 | services: |
| 3 | web1: |
| 4 | build: ./context |
| 5 | image: my-busybox-httpd |
| 6 | ports: |
| 7 | - 8080:80 |
| 8 | web2: |
| 9 | build: |
| 10 | context: ./context |
| 11 | dockerfile: Dockerfile-alt |
| 12 | labels: |
| 13 | mykey: myval |
| 14 | args: |
| 15 | buildno: 2 |
| 16 | httpd_port: 8000 |
| 17 | image: my-busybox-httpd2 |
| 18 | ports: |
| 19 | - 8000:8000 |
| 20 | test_build_arg_argument: |
| 21 | build: |
| 22 | context: ./context |
| 23 | dockerfile: Dockerfile-alt |
| 24 | image: my-busybox-httpd2 |
| 25 | command: env |