| calvinosanch | fc94811 | 2019-07-26 10:46:00 +0000 | [diff] [blame^] | 1 | ## |
| 2 | # Copyright 2019 ETSI | ||||
| 3 | # | ||||
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); you may | ||||
| 5 | # not use this file except in compliance with the License. You may obtain | ||||
| 6 | # a copy of the License at | ||||
| 7 | # | ||||
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 | ||||
| 9 | # | ||||
| 10 | # Unless required by applicable law or agreed to in writing, software | ||||
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||||
| 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||||
| 13 | # License for the specific language governing permissions and limitations | ||||
| 14 | # under the License. | ||||
| 15 | ## | ||||
| 16 | |||||
| 17 | ######################################################################## | ||||
| 18 | |||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 19 | version: '3' |
| 20 | volumes: | ||||
| garciadeblas | e3697a1 | 2018-12-10 15:49:27 +0100 | [diff] [blame] | 21 | ro: |
| gcalvino | 796aafb | 2018-05-10 13:29:17 +0200 | [diff] [blame] | 22 | ro_db: |
| 23 | mongo_db: | ||||
| 24 | mon_db: | ||||
| lavado | 0ef7a6d | 2018-10-19 16:59:12 -0500 | [diff] [blame] | 25 | pol_db: |
| gcalvino | 796aafb | 2018-05-10 13:29:17 +0200 | [diff] [blame] | 26 | osm_packages: |
| lavado | 353c8dd | 2018-11-08 08:22:07 -0500 | [diff] [blame] | 27 | prom_db: |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 28 | networks: |
| 29 | netOSM: | ||||
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 30 | external: |
| Mike Marchetti | 6e96263 | 2018-09-26 16:26:14 -0400 | [diff] [blame] | 31 | name: ${OSM_NETWORK:-netosm} |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 32 | #driver: overlay |
| 33 | #driver_opts: | ||||
| 34 | # com.docker.network.driver.mtu: "1446" | ||||
| 35 | services: | ||||
| 36 | zookeeper: | ||||
| Mike Marchetti | 13d76c8 | 2018-09-19 15:00:36 -0400 | [diff] [blame] | 37 | image: wurstmeister/zookeeper:${ZOOKEEPER_TAG:-latest} |
| garciadeblas | 46e9959 | 2018-04-16 13:32:02 +0200 | [diff] [blame] | 38 | # ports: |
| 39 | # - "2181:2181" | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 40 | networks: |
| 41 | - netOSM | ||||
| Mike Marchetti | 851aac2 | 2018-09-20 10:18:01 -0400 | [diff] [blame] | 42 | healthcheck: |
| 43 | test: echo stat | nc localhost 2181 | ||||
| 44 | interval: 10s | ||||
| 45 | timeout: 10s | ||||
| 46 | retries: 3 | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 47 | kafka: |
| Mike Marchetti | 13d76c8 | 2018-09-19 15:00:36 -0400 | [diff] [blame] | 48 | image: wurstmeister/kafka:${KAFKA_TAG:-latest} |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 49 | ports: |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 50 | - "9092" |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 51 | networks: |
| 52 | - netOSM | ||||
| 53 | environment: | ||||
| 54 | KAFKA_ADVERTISED_HOST_NAME: kafka | ||||
| 55 | KAFKA_ADVERTISED_PORT: 9092 | ||||
| 56 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||||
| Benjamin Diaz | c577862 | 2019-02-27 16:42:34 -0300 | [diff] [blame] | 57 | KAFKA_LOG_RETENTION_HOURS: 24 |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 58 | volumes: |
| 59 | - /var/run/docker.sock:/var/run/docker.sock | ||||
| calvinosanch | fc94811 | 2019-07-26 10:46:00 +0000 | [diff] [blame^] | 60 | healthcheck: |
| 61 | test: zookeeper-shell.sh zookeeper:2181 ls /brokers/ids 2>&1 | grep "Node does not exist" && exit 1 || exit 0 | ||||
| 62 | interval: 20s | ||||
| 63 | timeout: 10s | ||||
| 64 | retries: 5 | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 65 | #depends_on: |
| 66 | # - zookeeper | ||||
| 67 | mongo: | ||||
| 68 | image: mongo | ||||
| garciadeblas | 46e9959 | 2018-04-16 13:32:02 +0200 | [diff] [blame] | 69 | # ports: |
| 70 | # - "27017:27017" | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 71 | networks: |
| 72 | - netOSM | ||||
| gcalvino | 796aafb | 2018-05-10 13:29:17 +0200 | [diff] [blame] | 73 | volumes: |
| 74 | - mongo_db:/data/db | ||||
| lavado | 6021624 | 2018-10-10 23:44:28 +0200 | [diff] [blame] | 75 | prometheus: |
| 76 | image: prom/prometheus:${PROMETHEUS_TAG:-latest} | ||||
| 77 | hostname: prometheus | ||||
| 78 | ports: | ||||
| 79 | - "${OSM_PROM_PORTS:-9091:9090}" | ||||
| 80 | volumes: | ||||
| 81 | - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro | ||||
| lavado | 353c8dd | 2018-11-08 08:22:07 -0500 | [diff] [blame] | 82 | - prom_db:/prometheus |
| lavado | 6021624 | 2018-10-10 23:44:28 +0200 | [diff] [blame] | 83 | networks: |
| 84 | - netOSM | ||||
| Eduardo Sousa | 09a1e97 | 2018-09-21 11:06:32 +0100 | [diff] [blame] | 85 | keystone: |
| Gerardo García | ffb84c5 | 2019-06-26 16:22:12 +0200 | [diff] [blame] | 86 | image: ${DOCKER_USER:-opensourcemano}/keystone:${TAG:-6} |
| Eduardo Sousa | 09a1e97 | 2018-09-21 11:06:32 +0100 | [diff] [blame] | 87 | networks: |
| 88 | - netOSM | ||||
| 89 | environment: | ||||
| Benjamin Diaz | 6e3a2b6 | 2019-02-22 16:04:34 -0300 | [diff] [blame] | 90 | DB_HOST: mysql |
| Eduardo Sousa | 09a1e97 | 2018-09-21 11:06:32 +0100 | [diff] [blame] | 91 | env_file: |
| 92 | - ./keystone.env | ||||
| 93 | ports: | ||||
| 94 | - "${OSM_KEYSTONE_PORTS:-5000:5000}" | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 95 | nbi: |
| Gerardo García | ffb84c5 | 2019-06-26 16:22:12 +0200 | [diff] [blame] | 96 | image: ${DOCKER_USER:-opensourcemano}/nbi:${TAG:-6} |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 97 | networks: |
| 98 | - netOSM | ||||
| 99 | volumes: | ||||
| gcalvino | 796aafb | 2018-05-10 13:29:17 +0200 | [diff] [blame] | 100 | - osm_packages:/app/storage |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 101 | environment: |
| 102 | OSMNBI_DATABASE_HOST: mongo | ||||
| 103 | OSMNBI_MESSAGE_HOST: kafka | ||||
| Eduardo Sousa | e193dfd | 2018-09-21 11:37:49 +0100 | [diff] [blame] | 104 | env_file: |
| 105 | - ./nbi.env | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 106 | ports: |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 107 | - "${OSM_NBI_PORTS:-9999:9999}" |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 108 | #depends_on: |
| 109 | # - kafka | ||||
| 110 | # - mongo | ||||
| 111 | lcm: | ||||
| Gerardo García | ffb84c5 | 2019-06-26 16:22:12 +0200 | [diff] [blame] | 112 | image: ${DOCKER_USER:-opensourcemano}/lcm:${TAG:-6} |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 113 | networks: |
| 114 | - netOSM | ||||
| garciadeblas | e1b66ed | 2018-05-14 11:34:26 +0200 | [diff] [blame] | 115 | volumes: |
| 116 | - osm_packages:/app/storage | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 117 | environment: |
| 118 | OSMLCM_RO_HOST: ro | ||||
| 119 | OSMLCM_DATABASE_HOST: mongo | ||||
| 120 | OSMLCM_MESSAGE_HOST: kafka | ||||
| 121 | env_file: | ||||
| 122 | - ./lcm.env | ||||
| 123 | #depends_on: | ||||
| 124 | # - kafka | ||||
| 125 | # - mongo | ||||
| 126 | # - ro | ||||
| Benjamin Diaz | 6e3a2b6 | 2019-02-22 16:04:34 -0300 | [diff] [blame] | 127 | mysql: |
| garciadeblas | 4101260 | 2018-04-23 17:23:35 +0200 | [diff] [blame] | 128 | image: mysql:5 |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 129 | networks: |
| Benjamin Diaz | 6e3a2b6 | 2019-02-22 16:04:34 -0300 | [diff] [blame] | 130 | netOSM: |
| 131 | aliases: | ||||
| 132 | - ro-db | ||||
| gcalvino | 796aafb | 2018-05-10 13:29:17 +0200 | [diff] [blame] | 133 | volumes: |
| 134 | - ro_db:/var/lib/mysql | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 135 | env_file: |
| 136 | - ./ro-db.env | ||||
| garciadeblas | 46e9959 | 2018-04-16 13:32:02 +0200 | [diff] [blame] | 137 | # ports: |
| 138 | # - "3306:3306" | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 139 | ro: |
| Gerardo García | ffb84c5 | 2019-06-26 16:22:12 +0200 | [diff] [blame] | 140 | image: ${DOCKER_USER:-opensourcemano}/ro:${TAG:-6} |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 141 | networks: |
| 142 | - netOSM | ||||
| 143 | environment: | ||||
| Benjamin Diaz | 6e3a2b6 | 2019-02-22 16:04:34 -0300 | [diff] [blame] | 144 | RO_DB_HOST: mysql |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 145 | env_file: |
| 146 | - ./ro.env | ||||
| 147 | #depends_on: | ||||
| Benjamin Diaz | 6e3a2b6 | 2019-02-22 16:04:34 -0300 | [diff] [blame] | 148 | # - mysql |
| garciadeblas | e3697a1 | 2018-12-10 15:49:27 +0100 | [diff] [blame] | 149 | volumes: |
| 150 | - ro:/var/log/osm | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 151 | ports: |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 152 | - "${OSM_RO_PORTS:-9090:9090}" |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 153 | mon: |
| Gerardo García | ffb84c5 | 2019-06-26 16:22:12 +0200 | [diff] [blame] | 154 | image: ${DOCKER_USER:-opensourcemano}/mon:${TAG:-6} |
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 155 | networks: |
| 156 | - netOSM | ||||
| gcalvino | 796aafb | 2018-05-10 13:29:17 +0200 | [diff] [blame] | 157 | volumes: |
| 158 | - mon_db:/app/database | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 159 | environment: |
| Benjamin Diaz | e6f7b45 | 2019-02-07 12:09:57 -0300 | [diff] [blame] | 160 | OSMMON_MESSAGE_HOST: kafka |
| 161 | OSMMON_MESSAGE_PORT: 9092 | ||||
| garciadeblas | 46e9959 | 2018-04-16 13:32:02 +0200 | [diff] [blame] | 162 | env_file: |
| 163 | - ./mon.env | ||||
| lavado | afa54c7 | 2018-10-05 09:28:28 -0500 | [diff] [blame] | 164 | ports: |
| 165 | - "${OSM_MON_PORTS:-8662:8662}" | ||||
| gcalvino | 41440fc | 2018-03-16 13:21:21 +0100 | [diff] [blame] | 166 | #depends_on: |
| 167 | # - kafka | ||||
| Benjamin Diaz | 336c7e8 | 2019-02-27 14:01:38 -0300 | [diff] [blame] | 168 | logging: |
| 169 | driver: "json-file" | ||||
| 170 | options: | ||||
| 171 | max-file: 5 | ||||
| 172 | max-size: 10m | ||||
| Mike Marchetti | da8a9c4 | 2018-10-01 15:25:15 -0400 | [diff] [blame] | 173 | pol: |
| Gerardo García | ffb84c5 | 2019-06-26 16:22:12 +0200 | [diff] [blame] | 174 | image: ${DOCKER_USER:-opensourcemano}/pol:${TAG:-6} |
| garciadeblas | 14097dc | 2018-04-04 18:36:32 +0200 | [diff] [blame] | 175 | networks: |
| 176 | - netOSM | ||||
| lavado | 0ef7a6d | 2018-10-19 16:59:12 -0500 | [diff] [blame] | 177 | volumes: |
| 178 | - pol_db:/app/database | ||||
| garciadeblas | 14097dc | 2018-04-04 18:36:32 +0200 | [diff] [blame] | 179 | environment: |
| Benjamin Diaz | e6f7b45 | 2019-02-07 12:09:57 -0300 | [diff] [blame] | 180 | OSMPOL_MESSAGE_HOST: kafka |
| 181 | OSMPOL_MESSAGE_PORT: 9092 | ||||
| Benjamin Diaz | 0456088 | 2019-02-26 17:25:07 -0300 | [diff] [blame] | 182 | env_file: |
| 183 | - ./pol.env | ||||
| garciadeblas | 14097dc | 2018-04-04 18:36:32 +0200 | [diff] [blame] | 184 | #depends_on: |
| 185 | # - kafka | ||||
| 186 | # - mon | ||||
| Benjamin Diaz | 336c7e8 | 2019-02-27 14:01:38 -0300 | [diff] [blame] | 187 | logging: |
| 188 | driver: "json-file" | ||||
| 189 | options: | ||||
| 190 | max-file: 5 | ||||
| 191 | max-size: 10m | ||||
| garciadeblas | 14097dc | 2018-04-04 18:36:32 +0200 | [diff] [blame] | 192 | light-ui: |
| Gerardo García | ffb84c5 | 2019-06-26 16:22:12 +0200 | [diff] [blame] | 193 | image: ${DOCKER_USER:-opensourcemano}/light-ui:${TAG:-6} |
| garciadeblas | 14097dc | 2018-04-04 18:36:32 +0200 | [diff] [blame] | 194 | networks: |
| 195 | - netOSM | ||||
| 196 | environment: | ||||
| 197 | OSM_SERVER: nbi | ||||
| 198 | #depends_on: | ||||
| 199 | # - nbi | ||||
| Benjamin Diaz | 4088a9b | 2019-05-21 15:11:49 -0300 | [diff] [blame] | 200 | env_file: |
| 201 | - ./lwui.env | ||||
| garciadeblas | 14097dc | 2018-04-04 18:36:32 +0200 | [diff] [blame] | 202 | ports: |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 203 | - "${OSM_UI_PORTS:-80:80}" |