#
# ============LICENSE_START=======================================================
# org.onap.aai
# ================================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============LICENSE_END=========================================================
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#

version: '2'
services:
  aai-resources:
    image: ${DOCKER_REGISTRY}/openecomp/aai-resources
    network_mode: host
    environment:
      - AAI_CHEF_ENV=solo
      - AAI_REPO_PATH=r/aai
      - AAI_CHEF_LOC=/var/chef/aai-data/environments
      - docker_gitbranch=master
      - PROTOCOL=http
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"
  aai-graph-query:
    image: ${DOCKER_REGISTRY}/openecomp/aai-traversal
    network_mode: host
    environment:
      - AAI_CHEF_ENV=solo
      - AAI_REPO_PATH=r/aai
      - AAI_CHEF_LOC=/var/chef/aai-data/environments
      - docker_gitbranch=master
      - PROTOCOL=http
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"
  hbase:
    image: ${HBASE_IMAGE}
    network_mode: host
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"
  gremlin:
    image: ${GREMLIN_SERVER_IMAGE}
    network_mode: host
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"
  aai_haproxy:
    image: ${AAI_HAPROXY_IMAGE}
    volumes:
      - /dev/log:/dev/log
    network_mode: host
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"