|
| 1 | +################################################################################################# |
| 2 | +# |
| 3 | +# Copyright 2019 Ericsson AB. |
| 4 | +# For a full list of individual contributors, please see the commit history. |
| 5 | +# |
| 6 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +# you may not use this file except in compliance with the License. |
| 8 | +# You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, software |
| 13 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +# See the License for the specific language governing permissions and |
| 16 | +# limitations under the License. |
| 17 | +# |
| 18 | +################################################################################################## |
| 19 | +# docker-compose commands |
| 20 | +# |
| 21 | +# run: docker-compose up |
| 22 | +# stop: docker-compose stop |
| 23 | +# stop/remove: docker-compose down --volumes |
| 24 | +# |
| 25 | +# Cleanup/Remove (if needed): |
| 26 | +# Dangling Volumes: docker volume rm `docker volume ls -q -f dangling=true` |
| 27 | +# Unused Images: docker images -q | xargs docker rmi |
| 28 | +# Stopped containers: docker rm `docker ps -a -q` |
| 29 | +# |
| 30 | +# Maintainer: Eiffel-Community |
| 31 | +################################################################################################## |
| 32 | +version: "2.1" |
| 33 | +services: |
| 34 | + mongodb: |
| 35 | + restart: always |
| 36 | + image: mongo:latest |
| 37 | + expose: |
| 38 | + - "27017" |
| 39 | + ports: |
| 40 | + - "27017:27017" |
| 41 | + healthcheck: |
| 42 | + test: ["CMD-SHELL","echo", "'db.stats().ok' | mongo localhost:27017/test", "--quiet"] |
| 43 | + interval: 30s |
| 44 | + timeout: 10s |
| 45 | + retries: 5 |
| 46 | + networks: |
| 47 | + eiffel_2.0_1: |
| 48 | + aliases: |
| 49 | + - mongodb |
| 50 | + |
| 51 | + rabbitmq: |
| 52 | + restart: always |
| 53 | + image: rabbitmq:3.6.2-management |
| 54 | + expose: |
| 55 | + - "15672" |
| 56 | + - "5672" |
| 57 | + ports: |
| 58 | + - "15672:15672" |
| 59 | + - "5672:5672" |
| 60 | + healthcheck: |
| 61 | + test: ["CMD-SHELL", "if rabbitmqctl status; then \nexit 0 \nfi \nexit 1"] |
| 62 | + interval: 30s |
| 63 | + timeout: 10s |
| 64 | + retries: 5 |
| 65 | + networks: |
| 66 | + eiffel_2.0_1: |
| 67 | + aliases: |
| 68 | + - rabbitmq |
| 69 | + environment: |
| 70 | + - RABBITMQ_DEFAULT_PASS=myuser |
| 71 | + - RABBITMQ_DEFAULT_USER=myuser |
| 72 | + - RABBITMQ_DEFAULT_VHOST=/ |
| 73 | + |
| 74 | + eiffel-er: |
| 75 | + restart: always |
| 76 | + image: eiffelericsson/eiffel-er:0.0.60 |
| 77 | + expose: |
| 78 | + - "8080" |
| 79 | + ports: |
| 80 | + - "8082:8080" |
| 81 | + depends_on: |
| 82 | + - rabbitmq |
| 83 | + - mongodb |
| 84 | + networks: |
| 85 | + eiffel_2.0_1: |
| 86 | + aliases: |
| 87 | + - eiffel-er |
| 88 | + environment: # Overrides settings in config file in catalina folder. OBS --> skip quotes for rabbitmq.bindingKey value |
| 89 | + # No config file copied to catalina folder in Dockerfile, only uses env vars below ;-) |
| 90 | + # /eventrepository removed in contextpath |
| 91 | + - server.contextPath=/ |
| 92 | + - server.port=8080 |
| 93 | + - rabbitmq.host=rabbitmq |
| 94 | + - rabbitmq.componentName=eventrepository |
| 95 | + - rabbitmq.port=5672 |
| 96 | + - rabbitmq.domainId=ei-domain |
| 97 | + - rabbitmq.durable=true |
| 98 | + - rabbitmq.user=myuser |
| 99 | + - rabbitmq.password=myuser |
| 100 | + - rabbitmq.exchangeName=ei-exchange |
| 101 | + - rabbitmq.bindingKey=# |
| 102 | + - rabbitmq.autoDelete=false |
| 103 | + - rabbitmq.createExchangeIfNotExisting=true |
| 104 | + - rabbitmq.consumerName=messageConsumer |
| 105 | + - mongodb.host=mongodb |
| 106 | + - mongodb.port=27017 |
| 107 | + - mongodb.database=eiffel |
| 108 | + - mongodb.collection=events |
| 109 | + - mongodb.user |
| 110 | + - mongodb.password |
| 111 | + - mongodb.indexes=meta.id,links.target,links.type,meta.time,data.gav.groupId,data.gav.artifactId |
| 112 | + - mongodb.externalERs |
| 113 | + - search.limit=100 |
| 114 | + - search.levels=10 |
| 115 | + - eventrepo2.URL= |
| 116 | + - index.staticIndex.indexOn=false |
| 117 | + - index.staticIndex.filePath=src/main/resources/static_indexes.json |
| 118 | + - index.dynamicIndex.indexOn=false |
| 119 | + - index.dynamicIndex.indexCreationDay=SUNDAY |
| 120 | + - index.dynamicIndex.indexCreationTime=11:50:00 |
| 121 | + - index.dynamicIndex.maxIndexesCount=5 |
| 122 | + - index.dynamicIndex.filePath=src/main/resources/dynamic_indexing.json |
| 123 | + - index.dynamicIndex.fileUpdatePeriod=30 |
| 124 | + |
| 125 | + ei_backend: |
| 126 | + restart: always |
| 127 | + image: eiffelericsson/eiffel-intelligence-backend:0.0.18 |
| 128 | + expose: |
| 129 | + - "8080" |
| 130 | + ports: |
| 131 | + - "8080:8080" |
| 132 | + depends_on: |
| 133 | + - mongodb |
| 134 | + - rabbitmq |
| 135 | + networks: |
| 136 | + eiffel_2.0_1: |
| 137 | + aliases: |
| 138 | + - ei-backend |
| 139 | + environment: # Overrides settings in application config file |
| 140 | + - SpringApplicationName=ei-backend |
| 141 | + - server.port=8080 |
| 142 | + - rules.path=src/main/resources/ArtifactRules_new.json |
| 143 | + - rabbitmq.host=rabbitmq |
| 144 | + - rabbitmq.port=5672 |
| 145 | + - rabbitmq.domainId=ei-domain |
| 146 | + - rabbitmq.componentName=ei-backend |
| 147 | + - rabbitmq.waitlist.queue.suffix=waitlist |
| 148 | + - rabbitmq.exchange.name=ei-exchange |
| 149 | + - rabbitmq.user=myuser |
| 150 | + - rabbitmq.password=myuser |
| 151 | + - spring.data.mongodb.host=mongodb |
| 152 | + - spring.data.mongodb.port=27017 |
| 153 | + - spring.data.mongodb.database=eiffel2_intelligence |
| 154 | + - missedNotificationDataBaseName=eiffel2_intelligence_MissedNotification |
| 155 | + - search.query.prefix=object |
| 156 | + - aggregated.object.name=aggregatedObject |
| 157 | + - spring.mail.host= |
| 158 | + - spring.mail.port= |
| 159 | + - spring.mail.username= |
| 160 | + - spring.mail.password= |
| 161 | + - spring.mail.properties.mail.smtp.auth=false |
| 162 | + - spring.mail.properties.mail.smtp.starttls.enable=false |
| 163 | + - er.url=eiffel-er:8082 |
| 164 | + - logging.level.root=OFF |
| 165 | + - logging.level.org.springframework.web=ERROR |
| 166 | + - logging.level.com.ericsson.ei=ERROR |
| 167 | + - WAIT_MB_HOSTS=rabbitmq:15672 |
| 168 | + - WAIT_DB_HOSTS=mongodb:27017 |
| 169 | + |
| 170 | + ei_frontend: |
| 171 | + restart: always |
| 172 | + image: eiffel-intelligence-frontend:0.0.19 |
| 173 | + expose: |
| 174 | + - "8080" |
| 175 | + ports: |
| 176 | + - "8081:8080" |
| 177 | + depends_on: |
| 178 | + - ei_backend |
| 179 | + networks: |
| 180 | + eiffel_2.0_1: |
| 181 | + aliases: |
| 182 | + - ei-frontend |
| 183 | + environment: # Overrides settings in application config file |
| 184 | + - spring.application.name=ei-frontend |
| 185 | + - server.port=8080 |
| 186 | + - ei.frontendServiceHost=${HOST} |
| 187 | + - ei.frontendServicePort=8081 |
| 188 | + - ei.backendInstancesListJsonContent=${EIFFEL2_EI_FRONTEND_EI_INSTANCES_LIST} |
| 189 | + - ei.backendInstancesFilePath=/tmp/ei-instances-list.conf |
| 190 | + |
| 191 | +networks: |
| 192 | + eiffel_2.0_1: |
0 commit comments