tech51 – WIKI QNAP-Container-Station QNAP – Container-Station – Network Bridge

QNAP – Container-Station – Network Bridge

Applicable Products: Container Station v5.0.1.2145 and later.

QNET Network Driver Dokumentation: https://qnap-dev.github.io/container-station-api/qnet.html

version: '3'
services:
  qnet_dhcp:
    image: alpine
    entrypoint: ["/bin/sh", "-c"]
    command: ["echo Hello from Docker Compose! && tail -f /dev/null"]
    restart: always
    networks:
      - qnet-dhcp

  qnet_static:
    image: alpine
    entrypoint: ["/bin/sh", "-c"]
    command: ["echo Hello from Docker Compose! && tail -f /dev/null"]
    tty: true
    restart: always
    networks:
      qnet-static:
        ipv4_address: 192.168.3.188

networks:
  qnet-dhcp:
    driver: qnet
    driver_opts:
      iface: "eth0"
    ipam:
      driver: qnet
      options:
        iface: "eth0"

  qnet-static:
    driver: qnet
    driver_opts:
      iface: "eth0"
    ipam:
      driver: qnet
      options:
        iface: "eth0"
      config:
        - subnet: 192.168.3.0/24
          gateway: 192.168.3.254

Leave a Reply

Related Post