aboutsummaryrefslogtreecommitdiff
path: root/test/compose/update_network_mtu/docker-compose.yml
blob: fabd7b4f26e6ec23f8edff697ee84082d3ee01c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: '3.7'

services:
  nginx:
    image: alpine
    ports:
      - 8000:5000
    networks:
      - default
      - macvlan_net

networks:
  default:
    driver: bridge
    driver_opts:
      com.docker.network.bridge.name: docker0
      com.docker.network.driver.mtu: 9000
  macvlan_net:
    driver: macvlan
    driver_opts:
      mode: bridge
    ipam:
      config:
        -
          subnet: 192.168.20.0/24
          gateway: 192.168.20.1