| 1 | --- |
| 2 | networks: |
| 3 | net0: |
| 4 | ipam: |
| 5 | config: |
| 6 | - subnet: "172.19.3.0/24" |
| 7 | net1: |
| 8 | ipam: |
| 9 | config: |
| 10 | - subnet: "172.19.4.0/24" |
| 11 | services: |
| 12 | web1: |
| 13 | image: busybox |
| 14 | command: ["/bin/busybox", "httpd", "-f", "-h", "/tmp", "-p", "8001"] |
| 15 | networks: |
| 16 | net0: |
| 17 | ipv4_address: "172.19.3.11" |
| 18 | aliases: |
| 19 | - secure-web |
| 20 | net1: |
| 21 | ipv4_address: "172.19.4.11" |
| 22 | aliases: |
| 23 | - insecure-web |
| 24 | utils-net0: |
| 25 | image: busybox |
| 26 | command: ["/bin/busybox", "httpd", "-f", "-h", "/tmp", "-p", "8001"] |
| 27 | networks: |
| 28 | - net0 |
| 29 | utils-net1: |
| 30 | image: busybox |
| 31 | command: ["/bin/busybox", "httpd", "-f", "-h", "/tmp", "-p", "8001"] |
| 32 | networks: |
| 33 | - net1 |