version: '2.4'
services:
  node-init:
    image: "nexus.gz1.opensdn.io:5002/contrail-node-init:nightly-r24.1-centos"
    env_file: /etc/contrail/common_webui.env
    environment:
      - CONTRAIL_STATUS_IMAGE="nexus.gz1.opensdn.io:5002/contrail-status:nightly-r24.1-centos"
    privileged: true
    pid: host
    network_mode: "host"
    volumes:
      ['/usr/bin:/host/usr/bin', '/etc/contrail/ssl:/etc/contrail/ssl', '/etc/sysctl.d:/etc/sysctl.d',
        '/etc/hosts:/etc/hosts', '/etc/timezone:/etc/timezone', '/etc/localtime:/etc/localtime',
        '/var/log/contrail:/var/log/contrail', '/var/crashes:/var/crashes']

  web:
    image: "nexus.gz1.opensdn.io:5002/contrail-controller-webui-web:nightly-r24.1-centos"
    network_mode: "host"
    env_file: /etc/contrail/common_webui.env
    volumes_from:
      - node-init
    depends_on:
      - node-init
    restart: always
    stdin_open: True
    tty: True
    logging:
      driver: "json-file"
      options:
        max-size: "50m"
        max-file: "10"
  job:
    image: "nexus.gz1.opensdn.io:5002/contrail-controller-webui-job:nightly-r24.1-centos"
    network_mode: "host"
    env_file: /etc/contrail/common_webui.env
    volumes_from:
      - node-init
    depends_on:
      - node-init
    restart: always
    stdin_open: True
    tty: True
    logging:
      driver: "json-file"
      options:
        max-size: "50m"
        max-file: "10"
