Installer: refactor file generation, improved ng-ui and light-ui separation, fixes...
[osm/devops.git] / installers / docker / docker-compose-lightui.yaml
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
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   light-ui:
29     image: ${DOCKER_USER:-opensourcemano}/light-ui:${TAG:-8}
30     networks:
31       - netOSM
32     environment:
33       OSM_SERVER: nbi
34     #depends_on:
35     #  - nbi
36     env_file:
37       - ./lwui.env
38     ports:
39       - "${OSM_UI_PORTS:-80:80}"
40     logging:
41       driver: "json-file"
42       options:
43         max-size: "100m"
44         max-file: "2"
45