blob: 6675e97c78633ea77867f305f2f30dc3ae5d4ef5 [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
calvinosanch032bd772019-07-30 07:11:56 +000047 logging:
48 driver: "json-file"
49 options:
50 max-size: "100m"
51 max-file: "2"
gcalvino41440fc2018-03-16 13:21:21 +010052 kafka:
Mike Marchetti13d76c82018-09-19 15:00:36 -040053 image: wurstmeister/kafka:${KAFKA_TAG:-latest}
gcalvino41440fc2018-03-16 13:21:21 +010054 ports:
Mike Marchettib8420852018-09-13 13:45:06 -040055 - "9092"
gcalvino41440fc2018-03-16 13:21:21 +010056 networks:
57 - netOSM
58 environment:
59 KAFKA_ADVERTISED_HOST_NAME: kafka
60 KAFKA_ADVERTISED_PORT: 9092
61 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
Benjamin Diazc5778622019-02-27 16:42:34 -030062 KAFKA_LOG_RETENTION_HOURS: 24
gcalvino41440fc2018-03-16 13:21:21 +010063 volumes:
64 - /var/run/docker.sock:/var/run/docker.sock
calvinosanchfc948112019-07-26 10:46:00 +000065 healthcheck:
66 test: zookeeper-shell.sh zookeeper:2181 ls /brokers/ids 2>&1 | grep "Node does not exist" && exit 1 || exit 0
67 interval: 20s
68 timeout: 10s
69 retries: 5
calvinosanch032bd772019-07-30 07:11:56 +000070 logging:
71 driver: "json-file"
72 options:
73 max-size: "100m"
74 max-file: "2"
gcalvino41440fc2018-03-16 13:21:21 +010075 #depends_on:
76 # - zookeeper
77 mongo:
78 image: mongo
garciadeblas46e99592018-04-16 13:32:02 +020079# ports:
80# - "27017:27017"
gcalvino41440fc2018-03-16 13:21:21 +010081 networks:
82 - netOSM
gcalvino796aafb2018-05-10 13:29:17 +020083 volumes:
84 - mongo_db:/data/db
lavado60216242018-10-10 23:44:28 +020085 prometheus:
86 image: prom/prometheus:${PROMETHEUS_TAG:-latest}
87 hostname: prometheus
88 ports:
89 - "${OSM_PROM_PORTS:-9091:9090}"
90 volumes:
91 - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
lavado353c8dd2018-11-08 08:22:07 -050092 - prom_db:/prometheus
lavado60216242018-10-10 23:44:28 +020093 networks:
94 - netOSM
calvinosanch032bd772019-07-30 07:11:56 +000095 logging:
96 driver: "json-file"
97 options:
98 max-size: "100m"
99 max-file: "2"
Eduardo Sousa09a1e972018-09-21 11:06:32 +0100100 keystone:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200101 image: ${DOCKER_USER:-opensourcemano}/keystone:${TAG:-6}
Eduardo Sousa09a1e972018-09-21 11:06:32 +0100102 networks:
103 - netOSM
104 environment:
Benjamin Diaz6e3a2b62019-02-22 16:04:34 -0300105 DB_HOST: mysql
Eduardo Sousa09a1e972018-09-21 11:06:32 +0100106 env_file:
107 - ./keystone.env
108 ports:
109 - "${OSM_KEYSTONE_PORTS:-5000:5000}"
calvinosanch032bd772019-07-30 07:11:56 +0000110 logging:
111 driver: "json-file"
112 options:
113 max-size: "100m"
114 max-file: "2"
gcalvino41440fc2018-03-16 13:21:21 +0100115 nbi:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200116 image: ${DOCKER_USER:-opensourcemano}/nbi:${TAG:-6}
gcalvino41440fc2018-03-16 13:21:21 +0100117 networks:
118 - netOSM
119 volumes:
gcalvino796aafb2018-05-10 13:29:17 +0200120 - osm_packages:/app/storage
gcalvino41440fc2018-03-16 13:21:21 +0100121 environment:
122 OSMNBI_DATABASE_HOST: mongo
123 OSMNBI_MESSAGE_HOST: kafka
Eduardo Sousae193dfd2018-09-21 11:37:49 +0100124 env_file:
125 - ./nbi.env
gcalvino41440fc2018-03-16 13:21:21 +0100126 ports:
Mike Marchettib8420852018-09-13 13:45:06 -0400127 - "${OSM_NBI_PORTS:-9999:9999}"
calvinosanch032bd772019-07-30 07:11:56 +0000128 logging:
129 driver: "json-file"
130 options:
131 max-size: "100m"
132 max-file: "2"
gcalvino41440fc2018-03-16 13:21:21 +0100133 #depends_on:
134 # - kafka
135 # - mongo
136 lcm:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200137 image: ${DOCKER_USER:-opensourcemano}/lcm:${TAG:-6}
gcalvino41440fc2018-03-16 13:21:21 +0100138 networks:
139 - netOSM
garciadeblase1b66ed2018-05-14 11:34:26 +0200140 volumes:
141 - osm_packages:/app/storage
gcalvino41440fc2018-03-16 13:21:21 +0100142 environment:
143 OSMLCM_RO_HOST: ro
144 OSMLCM_DATABASE_HOST: mongo
145 OSMLCM_MESSAGE_HOST: kafka
146 env_file:
147 - ./lcm.env
calvinosanch032bd772019-07-30 07:11:56 +0000148 logging:
149 driver: "json-file"
150 options:
151 max-size: "100m"
152 max-file: "2"
gcalvino41440fc2018-03-16 13:21:21 +0100153 #depends_on:
154 # - kafka
155 # - mongo
156 # - ro
Benjamin Diaz6e3a2b62019-02-22 16:04:34 -0300157 mysql:
garciadeblas41012602018-04-23 17:23:35 +0200158 image: mysql:5
gcalvino41440fc2018-03-16 13:21:21 +0100159 networks:
Benjamin Diaz6e3a2b62019-02-22 16:04:34 -0300160 netOSM:
161 aliases:
162 - ro-db
gcalvino796aafb2018-05-10 13:29:17 +0200163 volumes:
164 - ro_db:/var/lib/mysql
gcalvino41440fc2018-03-16 13:21:21 +0100165 env_file:
166 - ./ro-db.env
calvinosanch032bd772019-07-30 07:11:56 +0000167 logging:
168 driver: "json-file"
169 options:
170 max-size: "100m"
171 max-file: "2"
garciadeblas46e99592018-04-16 13:32:02 +0200172# ports:
173# - "3306:3306"
gcalvino41440fc2018-03-16 13:21:21 +0100174 ro:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200175 image: ${DOCKER_USER:-opensourcemano}/ro:${TAG:-6}
gcalvino41440fc2018-03-16 13:21:21 +0100176 networks:
177 - netOSM
178 environment:
Benjamin Diaz6e3a2b62019-02-22 16:04:34 -0300179 RO_DB_HOST: mysql
gcalvino41440fc2018-03-16 13:21:21 +0100180 env_file:
181 - ./ro.env
182 #depends_on:
Benjamin Diaz6e3a2b62019-02-22 16:04:34 -0300183 # - mysql
garciadeblase3697a12018-12-10 15:49:27 +0100184 volumes:
185 - ro:/var/log/osm
gcalvino41440fc2018-03-16 13:21:21 +0100186 ports:
Mike Marchettib8420852018-09-13 13:45:06 -0400187 - "${OSM_RO_PORTS:-9090:9090}"
calvinosanch032bd772019-07-30 07:11:56 +0000188 logging:
189 driver: "json-file"
190 options:
191 max-size: "100m"
192 max-file: "2"
gcalvino41440fc2018-03-16 13:21:21 +0100193 mon:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200194 image: ${DOCKER_USER:-opensourcemano}/mon:${TAG:-6}
gcalvino41440fc2018-03-16 13:21:21 +0100195 networks:
196 - netOSM
gcalvino796aafb2018-05-10 13:29:17 +0200197 volumes:
198 - mon_db:/app/database
gcalvino41440fc2018-03-16 13:21:21 +0100199 environment:
Benjamin Diaze6f7b452019-02-07 12:09:57 -0300200 OSMMON_MESSAGE_HOST: kafka
201 OSMMON_MESSAGE_PORT: 9092
garciadeblas46e99592018-04-16 13:32:02 +0200202 env_file:
203 - ./mon.env
lavadoafa54c72018-10-05 09:28:28 -0500204 ports:
205 - "${OSM_MON_PORTS:-8662:8662}"
gcalvino41440fc2018-03-16 13:21:21 +0100206 #depends_on:
207 # - kafka
Benjamin Diaz336c7e82019-02-27 14:01:38 -0300208 logging:
209 driver: "json-file"
210 options:
211 max-file: 5
212 max-size: 10m
Mike Marchettida8a9c42018-10-01 15:25:15 -0400213 pol:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200214 image: ${DOCKER_USER:-opensourcemano}/pol:${TAG:-6}
garciadeblas14097dc2018-04-04 18:36:32 +0200215 networks:
216 - netOSM
lavado0ef7a6d2018-10-19 16:59:12 -0500217 volumes:
218 - pol_db:/app/database
garciadeblas14097dc2018-04-04 18:36:32 +0200219 environment:
Benjamin Diaze6f7b452019-02-07 12:09:57 -0300220 OSMPOL_MESSAGE_HOST: kafka
221 OSMPOL_MESSAGE_PORT: 9092
Benjamin Diaz04560882019-02-26 17:25:07 -0300222 env_file:
223 - ./pol.env
garciadeblas14097dc2018-04-04 18:36:32 +0200224 #depends_on:
225 # - kafka
226 # - mon
Benjamin Diaz336c7e82019-02-27 14:01:38 -0300227 logging:
228 driver: "json-file"
229 options:
230 max-file: 5
231 max-size: 10m
garciadeblas14097dc2018-04-04 18:36:32 +0200232 light-ui:
Gerardo Garcíaffb84c52019-06-26 16:22:12 +0200233 image: ${DOCKER_USER:-opensourcemano}/light-ui:${TAG:-6}
garciadeblas14097dc2018-04-04 18:36:32 +0200234 networks:
235 - netOSM
236 environment:
237 OSM_SERVER: nbi
238 #depends_on:
239 # - nbi
Benjamin Diaz4088a9b2019-05-21 15:11:49 -0300240 env_file:
241 - ./lwui.env
garciadeblas14097dc2018-04-04 18:36:32 +0200242 ports:
Mike Marchettib8420852018-09-13 13:45:06 -0400243 - "${OSM_UI_PORTS:-80:80}"
calvinosanch032bd772019-07-30 07:11:56 +0000244 logging:
245 driver: "json-file"
246 options:
247 max-size: "100m"
248 max-file: "2"