Add to_directory method to relevant object classes
[oam.git] / solution / integration / smo / non-rt-ric / docker-compose.yml
1 #  Copyright (C) 2021 Nordix Foundation. All rights reserved.
2 #  ========================================================================
3 #  Licensed under the Apache License, Version 2.0 (the "License");
4 #  you may not use this file except in compliance with the License.
5 #  You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14 #  ============LICENSE_END=================================================
15 #
16 version: '3'
17
18 networks:
19   nonrtric:
20     driver: bridge
21   oam:
22     external: true
23   smo:
24     external: true
25
26 services:
27   policy-agent:
28     image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-policy-agent:2.2.0
29     container_name: policy-agent
30     networks:
31       - default
32       - oam
33       - smo
34     ports:
35       - 8091:8081
36       - 8433:8433
37     volumes:
38       - ./config/pms/application_configuration.json:/opt/app/policy-agent/data/application_configuration.json:ro
39     # For using own certs instead of the default ones (built into the container),
40     # place them in config/ directory, update the application-policyagent.yaml file, and uncomment the following lines
41     #  - ./config/pms/keystore-policyagent.jks:/opt/app/policy-agent/etc/cert/keystore.jks:ro
42     #  - ./config/pms/truststore-policyagent.jks:/opt/app/policy-agent/etc/cert/truststore.jks:ro
43     #  - ./config/pms/application-policyagent.yaml:/opt/app/policy-agent/config/application.yaml:ro
44
45   a1-sim-OSC:
46     image: nexus3.o-ran-sc.org:10004/o-ran-sc/a1-simulator:2.1.0
47     container_name: a1-sim-OSC
48     networks:
49       - default
50       - oam
51       - smo
52     ports:
53       - 30001:8085
54       - 30002:8185
55     environment:
56       - A1_VERSION=OSC_2.1.0
57       - REMOTE_HOSTS_LOGGING=1
58       - ALLOW_HTTP=true
59
60   a1-sim-STD:
61     image: nexus3.o-ran-sc.org:10004/o-ran-sc/a1-simulator:2.1.0
62     container_name: a1-sim-STD
63     networks:
64       - default
65       - oam
66       - smo
67     ports:
68       - 30003:8085
69       - 30004:8185
70     environment:
71       - A1_VERSION=STD_1.1.3
72       - REMOTE_HOSTS_LOGGING=1
73       - ALLOW_HTTP=true
74
75   a1-sim-STD-v2:
76     image: nexus3.o-ran-sc.org:10004/o-ran-sc/a1-simulator:2.1.0
77     container_name: a1-sim-STD-v2
78     networks:
79       - default
80       - oam
81       - smo
82     ports:
83       - 30005:8085
84       - 30006:8185
85     environment:
86       - A1_VERSION=STD_2.0.0
87       - REMOTE_HOSTS_LOGGING=1
88       - ALLOW_HTTP=true
89
90   r-app:
91     image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-r-app-catalogue:1.1.0
92     container_name: r-app
93     networks:
94       - default
95     ports:
96       - 8680:8680
97       - 8633:8633
98
99   policy-control-panel:
100     image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-controlpanel:2.2.0
101     container_name: policy-control-panel
102     networks:
103       - default
104     ports:
105       - 8182:8080
106       - 8082:8082
107     volumes:
108       - ./config/control-panel/nginx.conf:/etc/nginx/nginx.conf:ro
109
110   nonrtric-gateway:
111     image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-gateway:0.0.1
112     container_name: nonrtric-gateway
113     networks:
114       - default
115     ports:
116       - 9090:9090
117     volumes:
118       - ./config/nonrtric-gateway/application-nonrtricgateway.yaml:/opt/app/nonrtric-gateway/config/application.yaml:ro
119
120   ecs:
121     image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-enrichment-coordinator-service:1.1.0
122     container_name: ecs
123     networks:
124       - default
125     ports:
126       - 8083:8083
127       - 8434:8434
128
129   producer:
130     image: eexit/mirror-http-server
131     container_name: producer
132     networks:
133       - default
134     ports:
135       - 8088:80
136
137   message-generator:
138     image: quay.io/yanhuanwang/message-generator
139     container_name: message-generator
140     networks:
141       - default
142       - smo
143       - oam
144     environment:
145       - MR-HOST=http://onap-dmaap
146       - MR-PORT=3904
147
148   oru-app:
149     image: quay.io/yanhuanwang/oru-app
150     container_name: oru-app
151     networks:
152       - default
153       - oam
154       - smo
155     environment:
156       - MR-HOST=http://onap-dmaap
157       - MR-PORT=3904
158       - SDNR-HOST=http://sdnr
159       - SDNR-PORT=8181
160       - VERBOSE=on
161
162   db:
163     image: mysql/mysql-server:5.6
164     container_name: sdncdb
165     networks:
166       - default
167     ports:
168       - "3306"
169     environment:
170       - MYSQL_ROOT_PASSWORD=itsASecret
171       - MYSQL_ROOT_HOST=%
172       - MYSQL_USER=sdnctl
173       - MYSQL_PASSWORD=gamma
174       - MYSQL_DATABASE=sdnctl
175     logging:
176       driver:   "json-file"
177       options:
178         max-size: "30m"
179         max-file: "5"
180
181   a1controller:
182     image: nexus3.onap.org:10002/onap/sdnc-image:2.1.2
183     depends_on :
184       - db
185     container_name: a1controller
186     networks:
187       - default
188     entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"]
189     ports:
190       - 8282:8181
191       - 8444:8443
192     links:
193       - db:dbhost
194       - db:sdnctldb01
195       - db:sdnctldb02
196     environment:
197       - MYSQL_ROOT_PASSWORD=itsASecret
198       - MYSQL_USER=sdnctl
199       - MYSQL_PASSWORD=gamma
200       - MYSQL_DATABASE=sdnctl
201       - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties
202       - SDNC_BIN=/opt/onap/sdnc/bin
203       - ODL_CERT_DIR=/tmp
204       - ODL_ADMIN_USERNAME=admin
205       - ODL_ADMIN_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
206       - ODL_USER=admin
207       - ODL_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
208       - SDNC_DB_INIT=true
209       - A1_TRUSTSTORE_PASSWORD=a1adapter
210       - AAI_TRUSTSTORE_PASSWORD=changeit
211     logging:
212       driver:   "json-file"
213       options:
214         max-size: "30m"
215         max-file: "5"