From: garciadeblas Date: Wed, 4 Apr 2018 12:36:47 +0000 (+0200) Subject: New docker folder. Added env files for some dockers X-Git-Tag: v3.1.0~22 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=ec5d8ea4c9e923b8a464fbaab3156b66af288a94;p=osm%2Fdevops.git New docker folder. Added env files for some dockers Change-Id: I528c8f3c4259b2e265cde6afd268e8384c40601f Signed-off-by: garciadeblas --- diff --git a/installers/docker-compose.yaml b/installers/docker-compose.yaml deleted file mode 100644 index c8d4e335..00000000 --- a/installers/docker-compose.yaml +++ /dev/null @@ -1,96 +0,0 @@ -version: '3' -volumes: - OSMstorage: -networks: - netOSM: - #driver: overlay - #driver_opts: - # com.docker.network.driver.mtu: "1446" -services: - zookeeper: - image: wurstmeister/zookeeper - ports: - - "2181:2181" - networks: - - netOSM - kafka: - image: wurstmeister/kafka - ports: - - "9092:9092" - networks: - - netOSM - environment: - KAFKA_ADVERTISED_HOST_NAME: kafka - KAFKA_ADVERTISED_PORT: 9092 - KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 - volumes: - - /var/run/docker.sock:/var/run/docker.sock - #depends_on: - # - zookeeper - mongo: - image: mongo - ports: - - "27017:27017" - networks: - - netOSM - nbi: - image: osm/nbi - networks: - - netOSM - volumes: - - OSMstorage:/app/storage - environment: - OSMNBI_DATABASE_HOST: mongo - OSMNBI_MESSAGE_HOST: kafka - ports: - - "9999:9999" - #depends_on: - # - kafka - # - mongo - lcm: - image: osm/lcm - networks: - - netOSM - volumes: - - OSMstorage:/app/storage - environment: - OSMLCM_RO_HOST: ro - OSMLCM_DATABASE_HOST: mongo - OSMLCM_MESSAGE_HOST: kafka - env_file: - - ./lcm.env - #depends_on: - # - kafka - # - mongo - # - ro - ro-db: - image: mysql - networks: - - netOSM - env_file: - - ./ro-db.env - ports: - - "3306:3306" - ro: - image: osm/ro - networks: - - netOSM - environment: - RO_DB_HOST: ro-db - env_file: - - ./ro.env - #depends_on: - # - ro-db - ports: - - "9090:9090" - mon: - image: osm/mon - networks: - - netOSM - environment: - BROKER_URI: kafka:9092 - #depends_on: - # - kafka - ports: - - "8662:8662" - diff --git a/installers/docker/docker-compose.yaml b/installers/docker/docker-compose.yaml new file mode 100644 index 00000000..c8d4e335 --- /dev/null +++ b/installers/docker/docker-compose.yaml @@ -0,0 +1,96 @@ +version: '3' +volumes: + OSMstorage: +networks: + netOSM: + #driver: overlay + #driver_opts: + # com.docker.network.driver.mtu: "1446" +services: + zookeeper: + image: wurstmeister/zookeeper + ports: + - "2181:2181" + networks: + - netOSM + kafka: + image: wurstmeister/kafka + ports: + - "9092:9092" + networks: + - netOSM + environment: + KAFKA_ADVERTISED_HOST_NAME: kafka + KAFKA_ADVERTISED_PORT: 9092 + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + volumes: + - /var/run/docker.sock:/var/run/docker.sock + #depends_on: + # - zookeeper + mongo: + image: mongo + ports: + - "27017:27017" + networks: + - netOSM + nbi: + image: osm/nbi + networks: + - netOSM + volumes: + - OSMstorage:/app/storage + environment: + OSMNBI_DATABASE_HOST: mongo + OSMNBI_MESSAGE_HOST: kafka + ports: + - "9999:9999" + #depends_on: + # - kafka + # - mongo + lcm: + image: osm/lcm + networks: + - netOSM + volumes: + - OSMstorage:/app/storage + environment: + OSMLCM_RO_HOST: ro + OSMLCM_DATABASE_HOST: mongo + OSMLCM_MESSAGE_HOST: kafka + env_file: + - ./lcm.env + #depends_on: + # - kafka + # - mongo + # - ro + ro-db: + image: mysql + networks: + - netOSM + env_file: + - ./ro-db.env + ports: + - "3306:3306" + ro: + image: osm/ro + networks: + - netOSM + environment: + RO_DB_HOST: ro-db + env_file: + - ./ro.env + #depends_on: + # - ro-db + ports: + - "9090:9090" + mon: + image: osm/mon + networks: + - netOSM + environment: + BROKER_URI: kafka:9092 + #depends_on: + # - kafka + ports: + - "8662:8662" + diff --git a/installers/docker/lcm.env b/installers/docker/lcm.env new file mode 100644 index 00000000..9c9de25b --- /dev/null +++ b/installers/docker/lcm.env @@ -0,0 +1,2 @@ +OSMLCM_VCA_HOST=`juju show-controller|grep api-endpoints|awk -F\' '{print $2}'|awk -F\: '{print $1}'` +OSMLCM_VCA_SECRET=`grep password /home/ubuntu/.local/share/juju/accounts.yaml |awk '{print $2}'` diff --git a/installers/docker/ro-db.env b/installers/docker/ro-db.env new file mode 100644 index 00000000..6f7297e4 --- /dev/null +++ b/installers/docker/ro-db.env @@ -0,0 +1 @@ +MYSQL_ROOT_PASSWORD=osm4u diff --git a/installers/docker/ro.env b/installers/docker/ro.env new file mode 100644 index 00000000..ca257f1f --- /dev/null +++ b/installers/docker/ro.env @@ -0,0 +1 @@ +RO_DB_ROOT_PASSWORD=osm4u