blob: c325776c668f3060b1c2d6411c3ba393a68a2665 [file] [log] [blame]
calvinosanchfc948112019-07-26 10:46:00 +00001##
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
gcalvino41440fc2018-03-16 13:21:21 +010019version: '3'
20volumes:
garciadeblase3697a12018-12-10 15:49:27 +010021 ro:
gcalvino796aafb2018-05-10 13:29:17 +020022 ro_db:
23 mongo_db:
24 mon_db:
lavado0ef7a6d2018-10-19 16:59:12 -050025 pol_db:
gcalvino796aafb2018-05-10 13:29:17 +020026 osm_packages:
lavado353c8dd2018-11-08 08:22:07 -050027 prom_db:
gcalvino41440fc2018-03-16 13:21:21 +010028networks:
29 netOSM:
Mike Marchettib8420852018-09-13 13:45:06 -040030 external:
Mike Marchetti6e962632018-09-26 16:26:14 -040031 name: ${OSM_NETWORK:-netosm}
gcalvino41440fc2018-03-16 13:21:21 +010032 #driver: overlay
33 #driver_opts:
34 # com.docker.network.driver.mtu: "1446"
35services:
36 zookeeper:
Mike Marchetti13d76c82018-09-19 15:00:36 -040037 image: wurstmeister/zookeeper:${ZOOKEEPER_TAG:-latest}
garciadeblas46e99592018-04-16 13:32:02 +020038# ports:
39# - "2181:2181"
gcalvino41440fc2018-03-16 13:21:21 +010040 networks:
41 - netOSM
Mike Marchetti851aac22018-09-20 10:18:01 -040042 healthcheck:
43 test: echo stat | nc localhost 2181
44 interval: 10s
45 timeout: 10s
46 retries: 3
gcalvino41440fc2018-03-16 13:21:21 +010047 kafka:
Mike Marchetti13d76c82018-09-19 15:00:36 -040048 image: wurstmeister/kafka:${KAFKA_TAG:-latest}
gcalvino41440fc2018-03-16 13:21:21 +010049 ports:
Mike Marchettib8420852018-09-13 13:45:06 -040050 - "9092"
gcalvino41440fc2018-03-16 13:21:21 +010051 networks:
52 - netOSM
53 environment:
54 KAFKA_ADVERTISED_HOST_NAME: kafka
55 KAFKA_ADVERTISED_PORT: 9092
56 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
Benjamin Diazc5778622019-02-27 16:42:34 -030057 KAFKA_LOG_RETENTION_HOURS: 24
gcalvino41440fc2018-03-16 13:21:21 +010058 volumes:
59 - /var/run/docker.sock:/var/run/docker.sock
calvinosanchfc948112019-07-26 10:46:00 +000060 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
gcalvino41440fc2018-03-16 13:21:21 +010065 #depends_on:
66 # - zookeeper
67 mongo:
68 image: mongo
garciadeblas46e99592018-04-16 13:32:02 +020069# ports:
70# - "27017:27017"
gcalvino41440fc2018-03-16 13:21:21 +010071 networks:
72 - netOSM
gcalvino796aafb2018-05-10 13:29:17 +020073 volumes:
74 - mongo_db:/data/db
lavado60216242018-10-10 23:44:28 +020075 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
lavado353c8dd2018-11-08 08:22:07 -050082 - prom_db:/prometheus
lavado60216242018-10-10 23:44:28 +020083 networks:
84 - netOSM
Eduardo Sousa09a1e972018-09-21 11:06:32 +010085 keystone:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +020086 image: ${DOCKER_USER:-opensourcemano}/keystone:${TAG:-6}
Eduardo Sousa09a1e972018-09-21 11:06:32 +010087 networks:
88 - netOSM
89 environment:
Benjamin Diaz6e3a2b62019-02-22 16:04:34 -030090 DB_HOST: mysql
Eduardo Sousa09a1e972018-09-21 11:06:32 +010091 env_file:
92 - ./keystone.env
93 ports:
94 - "${OSM_KEYSTONE_PORTS:-5000:5000}"
gcalvino41440fc2018-03-16 13:21:21 +010095 nbi:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +020096 image: ${DOCKER_USER:-opensourcemano}/nbi:${TAG:-6}
gcalvino41440fc2018-03-16 13:21:21 +010097 networks:
98 - netOSM
99 volumes:
gcalvino796aafb2018-05-10 13:29:17 +0200100 - osm_packages:/app/storage
gcalvino41440fc2018-03-16 13:21:21 +0100101 environment:
102 OSMNBI_DATABASE_HOST: mongo
103 OSMNBI_MESSAGE_HOST: kafka
Eduardo Sousae193dfd2018-09-21 11:37:49 +0100104 env_file:
105 - ./nbi.env
gcalvino41440fc2018-03-16 13:21:21 +0100106 ports:
Mike Marchettib8420852018-09-13 13:45:06 -0400107 - "${OSM_NBI_PORTS:-9999:9999}"
gcalvino41440fc2018-03-16 13:21:21 +0100108 #depends_on:
109 # - kafka
110 # - mongo
111 lcm:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200112 image: ${DOCKER_USER:-opensourcemano}/lcm:${TAG:-6}
gcalvino41440fc2018-03-16 13:21:21 +0100113 networks:
114 - netOSM
garciadeblase1b66ed2018-05-14 11:34:26 +0200115 volumes:
116 - osm_packages:/app/storage
gcalvino41440fc2018-03-16 13:21:21 +0100117 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 Diaz6e3a2b62019-02-22 16:04:34 -0300127 mysql:
garciadeblas41012602018-04-23 17:23:35 +0200128 image: mysql:5
gcalvino41440fc2018-03-16 13:21:21 +0100129 networks:
Benjamin Diaz6e3a2b62019-02-22 16:04:34 -0300130 netOSM:
131 aliases:
132 - ro-db
gcalvino796aafb2018-05-10 13:29:17 +0200133 volumes:
134 - ro_db:/var/lib/mysql
gcalvino41440fc2018-03-16 13:21:21 +0100135 env_file:
136 - ./ro-db.env
garciadeblas46e99592018-04-16 13:32:02 +0200137# ports:
138# - "3306:3306"
gcalvino41440fc2018-03-16 13:21:21 +0100139 ro:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200140 image: ${DOCKER_USER:-opensourcemano}/ro:${TAG:-6}
gcalvino41440fc2018-03-16 13:21:21 +0100141 networks:
142 - netOSM
143 environment:
Benjamin Diaz6e3a2b62019-02-22 16:04:34 -0300144 RO_DB_HOST: mysql
gcalvino41440fc2018-03-16 13:21:21 +0100145 env_file:
146 - ./ro.env
147 #depends_on:
Benjamin Diaz6e3a2b62019-02-22 16:04:34 -0300148 # - mysql
garciadeblase3697a12018-12-10 15:49:27 +0100149 volumes:
150 - ro:/var/log/osm
gcalvino41440fc2018-03-16 13:21:21 +0100151 ports:
Mike Marchettib8420852018-09-13 13:45:06 -0400152 - "${OSM_RO_PORTS:-9090:9090}"
gcalvino41440fc2018-03-16 13:21:21 +0100153 mon:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200154 image: ${DOCKER_USER:-opensourcemano}/mon:${TAG:-6}
gcalvino41440fc2018-03-16 13:21:21 +0100155 networks:
156 - netOSM
gcalvino796aafb2018-05-10 13:29:17 +0200157 volumes:
158 - mon_db:/app/database
gcalvino41440fc2018-03-16 13:21:21 +0100159 environment:
Benjamin Diaze6f7b452019-02-07 12:09:57 -0300160 OSMMON_MESSAGE_HOST: kafka
161 OSMMON_MESSAGE_PORT: 9092
garciadeblas46e99592018-04-16 13:32:02 +0200162 env_file:
163 - ./mon.env
lavadoafa54c72018-10-05 09:28:28 -0500164 ports:
165 - "${OSM_MON_PORTS:-8662:8662}"
gcalvino41440fc2018-03-16 13:21:21 +0100166 #depends_on:
167 # - kafka
Benjamin Diaz336c7e82019-02-27 14:01:38 -0300168 logging:
169 driver: "json-file"
170 options:
171 max-file: 5
172 max-size: 10m
Mike Marchettida8a9c42018-10-01 15:25:15 -0400173 pol:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200174 image: ${DOCKER_USER:-opensourcemano}/pol:${TAG:-6}
garciadeblas14097dc2018-04-04 18:36:32 +0200175 networks:
176 - netOSM
lavado0ef7a6d2018-10-19 16:59:12 -0500177 volumes:
178 - pol_db:/app/database
garciadeblas14097dc2018-04-04 18:36:32 +0200179 environment:
Benjamin Diaze6f7b452019-02-07 12:09:57 -0300180 OSMPOL_MESSAGE_HOST: kafka
181 OSMPOL_MESSAGE_PORT: 9092
Benjamin Diaz04560882019-02-26 17:25:07 -0300182 env_file:
183 - ./pol.env
garciadeblas14097dc2018-04-04 18:36:32 +0200184 #depends_on:
185 # - kafka
186 # - mon
Benjamin Diaz336c7e82019-02-27 14:01:38 -0300187 logging:
188 driver: "json-file"
189 options:
190 max-file: 5
191 max-size: 10m
garciadeblas14097dc2018-04-04 18:36:32 +0200192 light-ui:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200193 image: ${DOCKER_USER:-opensourcemano}/light-ui:${TAG:-6}
garciadeblas14097dc2018-04-04 18:36:32 +0200194 networks:
195 - netOSM
196 environment:
197 OSM_SERVER: nbi
198 #depends_on:
199 # - nbi
Benjamin Diaz4088a9b2019-05-21 15:11:49 -0300200 env_file:
201 - ./lwui.env
garciadeblas14097dc2018-04-04 18:36:32 +0200202 ports:
Mike Marchettib8420852018-09-13 13:45:06 -0400203 - "${OSM_UI_PORTS:-80:80}"