Installer: refactor file generation, improved ng-ui and light-ui separation, fixes...
[osm/devops.git] / installers / docker / docker-compose-ngui.yaml
1 ##
2 # Copyright 2019-2020 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
19 version: '3'
20 networks:
21   netOSM:
22     external:
23       name: ${OSM_NETWORK:-netosm}
24     #driver: overlay
25     #driver_opts:
26     #  com.docker.network.driver.mtu: "1446"
27 services:
28   ng-ui:
29     image: ${DOCKER_USER:-opensourcemano}/ng-ui:${TAG:-8}
30     networks:
31       - netOSM
32     ports:
33       - "${OSM_UI_PORTS:-80:80}"
34     logging:
35       driver: "json-file"
36       options:
37         max-size: "100m"
38         max-file: "2"
39