blob: f40a106e9188a2471290bd551fc231750d7f0d78 [file] [log] [blame]
kishore6eebdba2017-10-03 11:12:57 -05001# docker-compose for ONAP portal containers: database, microservice, portal apps.
2# Relies on .env file in current directory.
3# Works in multiple environments; does not pull from a Nexus registry.
4# Exposes the portal apps docker (but not DB nor WMS dockers) on the host network.
5# Images must be pulled from ONAP Nexus registry after logging in like this:
6# docker login -u USER -p PASS nexus3.onap.org:10001
7
8version: '2.0'
9
10services:
11
12 cli:
13 image: ${CLI_IMG_NAME}:${PORTAL_TAG}
14 environment:
15 CLI_MODE: 'daemon'
16 expose:
17 - 80
18 ports:
19 - 8080:80
20 logging:
21 driver: json-file
22
23 # Config files may use hostname "portal-db"
24 portal-db:
25 image: ${DB_IMG_NAME}:${PORTAL_TAG}
26 environment:
27 MYSQL_ROOT_PASSWORD: 'Aa123456'
28 expose:
29 - 3306
30 volumes:
31 # Just specify a path and let the Engine create a volume
32 - /var/lib/mysql
33 logging:
34 driver: json-file
35
36 # An environment variable here CAN override the database URL;
37 # instead the value in the config file uses hostname from above
38 portal-wms:
39 image: ${WMS_IMG_NAME}:${PORTAL_TAG}
40 expose:
41 - 8082
42 links:
43 - portal-db
44 depends_on:
45 - portal-db
46 volumes:
47 - ${PROPS_DIR}/ECOMPWIDGETMS/application.properties:/application.properties
48 command:
49 - /wait-for.sh
50 - -t
51 - "300"
52 - portal-db:3306
53 - --
54 - /start-wms-cmd.sh
55 logging:
56 driver: json-file
57
58 # Environment variables here CANNOT override the database URL because
59 # two apps use identical configuration keys with different values
60 portal-apps:
61 image: ${EP_IMG_NAME}:${PORTAL_TAG}
62 expose:
63 - 8989
64 ports:
65 - 8989:8080
66 - 8010:8009
67 - 8006:8005
68 links:
69 - portal-db
70 - portal-wms
71 depends_on:
72 - portal-db
73 - portal-wms
74 volumes:
75 - ${PROPS_DIR}/ECOMPPORTALAPP/system.properties:${WEBAPPS_DIR}/ECOMPPORTAL/WEB-INF/conf/system.properties
76 - ${PROPS_DIR}/ECOMPPORTALAPP/fusion.properties:${WEBAPPS_DIR}/ECOMPPORTAL/WEB-INF/fusion/conf/fusion.properties
77 - ${PROPS_DIR}/ECOMPPORTALAPP/portal.properties:${WEBAPPS_DIR}/ECOMPPORTAL/WEB-INF/classes/portal.properties
78 - ${PROPS_DIR}/ECOMPPORTALAPP/openid-connect.properties:${WEBAPPS_DIR}/ECOMPPORTAL/WEB-INF/classes/openid-connect.properties
79 - ${PROPS_DIR}/ECOMPPORTALAPP/logback.xml:${WEBAPPS_DIR}/ECOMPPORTAL/WEB-INF/classes/logback.xml
80 - ${PROPS_DIR}/ECOMPSDKAPP/fusion.properties:${WEBAPPS_DIR}/ECOMPSDKAPP/WEB-INF/fusion/conf/fusion.properties
81 - ${PROPS_DIR}/ECOMPSDKAPP/system.properties:${WEBAPPS_DIR}/ECOMPSDKAPP/WEB-INF/conf/system.properties
82 - ${PROPS_DIR}/ECOMPSDKAPP/portal.properties:${WEBAPPS_DIR}/ECOMPSDKAPP/WEB-INF/classes/portal.properties
83 - ${PROPS_DIR}/ECOMPDBCAPP/system.properties:${WEBAPPS_DIR}/ECOMPDBCAPP/WEB-INF/conf/system.properties
84 - ${PROPS_DIR}/ECOMPDBCAPP/portal.properties:${WEBAPPS_DIR}/ECOMPDBCAPP/WEB-INF/classes/portal.properties
85 - ${PROPS_DIR}/ECOMPDBCAPP/dbcapp.properties:${WEBAPPS_DIR}/ECOMPDBCAPP/WEB-INF/dbcapp/dbcapp.properties
86 - ${PROPS_DIR}/ECOMPDBCAPP/fusion.properties:${WEBAPPS_DIR}/ECOMPDBCAPP/WEB-INF/fusion/conf/fusion.properties
87 - ${LOGS_DIR}:/opt/apache-tomcat-8.0.37/logs
88 command:
89 - /wait-for.sh
90 - -t
91 - "300"
92 - portal-db:3306
93 - --
94 - /start-apps-cmd.sh
95 logging:
96 driver: json-file